-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fitted states for ESN? #92
Comments
This would make for a very interesting addition! Instead of a new function I could add a |
Arguments for a separate function is that for getting the trained states, all one needs is a call like |
I am sorry, actually misread the initial post. I thought that you were looking for the fitted states for the prediction data. The fitted states for the input/training data can be accessed in the ESN struct: using the example in the readme one can fit the esn like so esn = ESN(approx_res_size,
train,
degree,
radius,
activation = activation, #default = tanh
alpha = alpha, #default = 1.0
sigma = sigma, #default = 0.1
nla_type = nla_type, #default = NLADefault()
extended_states = extended_states #default = false
) and after to access the states you can call the states field of the ESN struct esn.states
# 300×5000 Matrix{Float64} |
Hi, I think we're talking at crossed purposes. What I'd like is the readout for the input data (on the same scale as the observations), not just the internal states of the ESN (i.e. after applying a NLA and the activation). You're not going to get an exact match between the readout of the ESN to the training data due to the use of penalties (and perhaps an underparameterized or poorly parameterized network). |
I am going to leave this issue open for the moment, since the other ESN variations could use a dispatch for this function, that for the moment has not been added |
Thanks @MartinuzziFrancesco. It seems to work well; I've updated my sine-curve gist to incorporate the fitted output - please feel free to use this example if it helps. |
While there's an
ESNpredict
function, and it's possible to add the exact input state onto the state of ESN, would it be possible to add an `ESNfitted' function that returns the (predicted) state for the input/training data?The text was updated successfully, but these errors were encountered: