Subclass Leaky #300
JackCaster
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I would like to subclass
Leaky
to modify its base function. The reason is that I would likebeta
to be negative. This would make the equation closer to how drift diffusion models are defined in psychology.What I Did
I tried to subclass
snn.Leaky
and override the_base_state_function
methodHowever, when I called the class (and the
forward
method is triggered)I got
TypeError: MyLeaky._base_state_function() takes 2 positional arguments but 3 were given
because the
_base_state_function
gets alsomem
as part of the inputs for some reasons.Would you be able to help?
Beta Was this translation helpful? Give feedback.
All reactions