nnet-tsNeural network architecture for time series forecasting.
Requirements and installationThis packages relies heavily on numpy, scipy, pandas, theano and keras. Check on their repositories how to install them first.
Then, simply fetch the package from PyPI.
sudo pip install nnet-ts
UsageUsing Box & Jenkins classical air passenger data.
Create a TimeSeriesNnet object and specify each layer size and activation function.
Then just fit the data and predict values:
neural_net.fit(time_series, lag = 40, epochs = 10000)neural_net.predict_ahead(n_ahead = 30)
Did we get it right? Let's check
本帖隐藏的内容
https://github.com/hawk31/nnet-ts