You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/SciML/ColPrac)
ReservoirComputing.jl provides an efficient, modular and easy to use implementation of Reservoir Computing models such as Echo State Networks (ESNs). For information on using this package please refer to the [stable documentation](https://docs.sciml.ai/ReservoirComputing/stable/). Use the [in-development documentation](https://docs.sciml.ai/ReservoirComputing/dev/) to take a look at at not yet released features.
18
+
19
19
## Quick Example
20
20
21
21
To illustrate the workflow of this library we will showcase how it is possible to train an ESN to learn the dynamics of the Lorenz system. As a first step we will need to gather the data. For the `Generative` prediction we need the target data to be one step ahead of the training data:
@@ -36,7 +36,7 @@ function lorenz(du, u, p, t)
36
36
end
37
37
#solve and take data
38
38
prob =ODEProblem(lorenz, u0, tspan, p)
39
-
data =Array(solve(prob, ABM54(), dt=0.02))
39
+
data =Array(solve(prob, ABM54(); dt=0.02))
40
40
41
41
shift =300
42
42
train_len =5000
@@ -55,9 +55,9 @@ Now that we have the data we can initialize the ESN with the chosen parameters.
The echo state network can now be trained and tested. If not specified, the training will always be ordinary least squares regression. The full range of training methods is detailed in the documentation.
@@ -71,8 +71,8 @@ The data is returned as a matrix, `output` in the code above, that contains the
0 commit comments