jaungiers / LSTM-Neural-Network-for-Time-Series-Prediction

LSTM built using Keras Python package to predict time series steps and sequences. Includes sin wave and stock market data
GNU Affero General Public License v3.0
4.79k stars 1.95k forks source link

Outdated functions #103

Open yolomcswagpie opened 2 years ago

yolomcswagpie commented 2 years ago

WARNING: QApplication was not created in the main() thread. [2022-03-06 16:11:07,935] ERROR in app: Exception on /insertintotable [POST] Traceback (most recent call last): File "D:\Programs\Python\Python310\lib\site-packages\flask\app.py", line 2073, in wsgi_app response = self.full_dispatch_request() File "D:\Programs\Python\Python310\lib\site-packages\flask\app.py", line 1518, in full_dispatch_request rv = self.handle_user_exception(e) File "D:\Programs\Python\Python310\lib\site-packages\flask\app.py", line 1516, in full_dispatch_request rv = self.dispatch_request() File "D:\Programs\Python\Python310\lib\site-packages\flask\app.py", line 1502, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(*req.view_args) File "D:\Downloads\Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master\Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master\main.py", line 474, in insertintotable arima_pred, error_arima=ARIMA_ALGO(df) File "D:\Downloads\Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master\Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master\main.py", line 118, in ARIMA_ALGO predictions = arima_model(train, test) File "D:\Downloads\Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master\Stock-Market-Prediction-Web-App-using-Machine-Learning-And-Sentiment-Analysis-master\main.py", line 93, in arima_model model = ARIMA(history, order=(6,1 ,0)) File "D:\Programs\Python\Python310\lib\site-packages\statsmodels\tsa\arima_model.py", line 45, in init super().init(args, **kwargs) File "D:\Programs\Python\Python310\lib\site-packages\statsmodels\tsa\arima_model.py", line 29, in init raise NotImplementedError(ARIMA_DEPRECATION_ERROR) NotImplementedError: statsmodels.tsa.arima_model.ARMA and statsmodels.tsa.arima_model.ARIMA have been removed in favor of statsmodels.tsa.arima.model.ARIMA (note the . between arima and model) and statsmodels.tsa.SARIMAX.

statsmodels.tsa.arima.model.ARIMA makes use of the statespace framework and is both well tested and maintained. It also offers alternative specialized parameter estimators.