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
Can't fully define noise distribution #98
Comments
It looks like you can manually set the noise generator after calling the constructor, as so:
I believe this sets the noise generator to be a uniform distribution with values in [-0.5, 0.5). |
Hello, Could you be a bit more specific, where exactly do you want to add noise? |
I was trying to add noise in the reservoir hidden state update, as |
Did you try deriving the reservoir node or the ESN node and adding the noise in the state update equation? The noise generator you tried is from hyperopt library, which you probably don't need. |
Hello @jhtu, A |
Thanks for the quick fix. This works as expected! |
The$\text{Unif}(0, 2)$ . However, if we want to instead draw values from $\text{Unif}(-1, 1)$ , I don't see how we can do that.
Reservoir
constructor allows for various noise scalings (likenoise_rc
) and also the noise distribution (noise_type
). However, I don't think there is anyway to further specify the noise. For instance, if we setnoise_type='Uniform'
andnoise_rc=2.
then we can draw values fromThe
Reservoir
class calls eitherbase.forward_internal
orbase.forward_external
, both of which use the reservoir'snoise_generator
, which in turn callsutils.random.noise
. Actually,utils.random.noise
accepts**kwargs
and would allow for more flexible noise generation. But inbase.forward_internal
, there is no way to pass in other arguments.The text was updated successfully, but these errors were encountered: