This directory contains implementations of echo state networks [1,2] (ESNs) for forecasting dynamical systems, as well as supporting evaluation in the Common Task Framework (CTF) for Science. As implemented [3, 4], an ESN is a form of recurrent neural that evolves according to
Within the CTF, we evaluate the performance of ESNs on low-dimensional systems (i.e. ODE systems) as presented in [3] and on high-dimensional systems as presented in [5].
First, ensure that ctf4science is already installed. Then, from the root directory of esn_ctf,
pip install -r requirements.txtwill install the remaining dependencies.
Given a config file (examples in config directory), one can train and evaluate a model by running
python run.py <path-to-config>Or, given a hyperparameter tuning config (examples in tuning_config directory), one can optimize a set of hyperparameters by running
python optimize_parameters.py --config_path <path-to-config>The bash scripts driver_run.sh and test_opt_params.sh can provide a comprehensive test that your environment has been set up correctly by replicating the results fronm the CTF paper. It is strongly recommended to update the tuning config files to enforce a maximum number of trials before running test_opt_params.sh.
[1] Jaeger, "The echo state approach to analyzing and training recurrent neural networks," German National Research Center for Information Technology, Technical Report GMD 148, 2001.
[2] Maas and Markram, "On the computational power of circuits of spiking neurons," Journal of Computer and System Sciences, 2004.
[3] Platt et al., "A systematic exploration of reservoir computing for forecasting complex spatiotemporal dynamics," Neural Networks, 2022.
[4] Kidger and Garcia, "Equinox: neural networks in (JAX) via callable PyTrees and filtered transformations," Differentiable Programming workshop at Neural Information Processing Systems, 2021.
[5] Pathak et al., "Model-Free Prediction of Large Spatiotemporally Chaotic Systems from Data: A Reservoir Computing Approach," Physical Review Letters, 2018.