# Define the model model = Sequential() model.add(LSTM(units=50, return_sequences=True, input_shape=(scaled_data.shape[1], 1))) model.add(LSTM(units=50)) model.add(Dense(1))

# Compile and train model.compile(optimizer='adam', loss='mean_squared_error') model.fit(train_data, epochs=50)

# Preprocess scaler = MinMaxScaler(feature_range=(0,1)) scaled_data = scaler.fit_transform(data)

The leading app for field teams

Badger Maps is a routing & mapping app that automates data collection and uplevels field team performance. From planning your day to managing your territories, Badger optimizes every aspect of the field sales process.

Marks Head Bobbers Hand Jobbers Serina

# Define the model model = Sequential() model.add(LSTM(units=50, return_sequences=True, input_shape=(scaled_data.shape[1], 1))) model.add(LSTM(units=50)) model.add(Dense(1))

# Compile and train model.compile(optimizer='adam', loss='mean_squared_error') model.fit(train_data, epochs=50)

# Preprocess scaler = MinMaxScaler(feature_range=(0,1)) scaled_data = scaler.fit_transform(data)