GithubHelp home page GithubHelp logo

on call function about reservoirpy HOT 3 CLOSED

reservoirpy avatar reservoirpy commented on June 20, 2024
on call function

from reservoirpy.

Comments (3)

Finebouche avatar Finebouche commented on June 20, 2024

I understand that I am not using the library correctly.

I would like to :

  • instantiate a reservoir with a defined internal matrix and a defined input matrix,
  • feed the reservoir with input step by step (I thought call() was doing exactly that),
  • observe the internal states
  • and generate the output Wout matrix based on the internal states

However it doesn't seem possible to feed the the reservoir and get the internal states without setting a readout first ?

from reservoirpy.

nTrouvain avatar nTrouvain commented on June 20, 2024

Hello,
Your usage of node call seems good. What went wrong is the dimension of you input data. For some reason, X_train1[0] has a shape of (1, 1) (one timestep, 1 variable) but your matrix Win is expecting an input of shape (1, 4) (one timestep, 4 variables). You also probably let the input_bias parameter to True in your reservoir, which means that the row of your custom Win matrix will be considered as a bias vector. (this is a bit odd and will be changed in a future version), hence a Win matrix of dimension (5, 1). This also means that your reservoir is of size 1, which is probably nt what you want to do. Could you give a more complete code example ?

from reservoirpy.

Finebouche avatar Finebouche commented on June 20, 2024

Thanks, I resolve the problem.
It was also linked to this bias parameter that I didn't get right.

from reservoirpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.