Skip to content
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

Accessing reservoir states #12

Closed
pfdominey opened this issue Jun 25, 2020 · 2 comments
Closed

Accessing reservoir states #12

pfdominey opened this issue Jun 25, 2020 · 2 comments

Comments

@pfdominey
Copy link

Greetings,
Thanks for the great system. I am interested in studying the activity of the reservoir units during the time-course of the processing of the input sequence. After training the reservoir we then expose it to a test inputDataTesting

prediction = esn.predict(inputDataTesting)

After this execution, is it possible to have access to the data structure that contains the activations of the reservoir units during the processing of the input? This would be a matrix of NxM where N is the number of reservoir units, and M is the number of time steps during the simulation.

This would be used to analyse the temporal dynamics of the reservoir activity.

Thanks for your help

PF Dominey

(ps - I hope this is an appropriate question for this issue forum - please excuse me if this is out of line)

@zimmerrol
Copy link
Member

Hi,
this is not possible at the moment. But you can easily add this function to the library! Just modify the last line of the predict function` and change it from

return Y.T 

to

return Y.T, X

Does this solve your problem?

@pfdominey
Copy link
Author

Sure does! Thanks:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants