We use LSTMs to predict the sunspot number data from the observed data that is available (1818-2019).
In order to use this code to predict sunspots:
- Clone this repo.
- Create the directories
img/
,models/
andlogs
. - Run the Jupyter notebook bin/main.ipynb.
- Change the
%cd
to match the path to the head directory on your system. - Run all the cells in the notebook.
- Python 3 (tested with 3.7.7)
- libs:
numpy scipy pandas matplotlib tensorflow_gpu keras_gpu jupyter
- We have used Adadelta optimizer. You can use the Adam optimizer instead as well. Just change the trainer function in
src/network.py
. Both converge to the same overall minima, Adadelta converges from the top (underfits) while Adam converges from the bottom (overfits).