# 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))
# Preprocess scaler = MinMaxScaler(feature_range=(0,1)) scaled_data = scaler.fit_transform(data) marks head bobbers hand jobbers serina
# Compile and train model.compile(optimizer='adam', loss='mean_squared_error') model.fit(train_data, epochs=50) # Define the model model = Sequential() model