eleanor.torch.models#
- class eleanor.torch.models.Bruno(*args, **kwargs)[source]#
Bases:
SpikingNeuron- Parameters:
- __init__(A=2.5e-11, t_hzo=1e-08, t_int=1.375e-09, eps_hzo=25.2, eps_int=33, E_a=1270000000.0, P_s=0.22, tau_0=1e-13, I_0=0.0001, V_t=0.32, C_par=1.5e-14, alpha=1.3, soft_E=5e-06, I_dsc=1e-11, threshold=2.5, dt=0.001, paramsScale=1000000000000.0, variability=0.0, nsteps=1000, spike_grad=None, surrogate_disable=False, init_hidden=False, inhibition=False, learn_threshold=False, reset_mechanism='zero', state_quant=False, output=False, reset_delay=True, graded_spikes_factor=1.0, learn_graded_spikes_factor=False)[source]#
Used to detach hidden states from the current graph. Intended for use in truncated backpropagation through time where hidden state variables are instance variables.
Used to clear hidden state variables to zero. Intended for use where hidden state variables are instance variables.
- class eleanor.torch.models.FeLIF(*args, **kwargs)[source]#
Bases:
SpikingNeuron- Parameters:
- __init__(tau_p, tau_m, P_s=0.27, alpha=1.0, beta=1.0, tau_alpha=1.3, E_a=1.0, soft_E=1e-18, threshold=1.0, dt=0.001, variability=0.0, spike_grad=None, surrogate_disable=False, init_hidden=False, inhibition=False, learn_P_s=False, learn_alpha=False, learn_beta=False, learn_gamma=False, learn_threshold=False, reset_mechanism='zero', state_quant=False, output=False, reset_delay=True, graded_spikes_factor=1.0, learn_graded_spikes_factor=False)[source]#
Used to detach hidden states from the current graph. Intended for use in truncated backpropagation through time where hidden state variables are instance variables.
Used to clear hidden state variables to zero. Intended for use where hidden state variables are instance variables.
- class eleanor.torch.models.Heracles(*args, **kwargs)[source]#
Bases:
SpikingNeuron- Parameters:
- __init__(A=2.5e-11, t_fe=9.8e-09, eps_fe=70, eps_depl=3.6, q_fix_depl=0.0945, n_depl=1.4e+28, e_off=20000000.0, temp=294, w_b=1.05, d_e=7.5e-09, P_s=0.27, I_0=0.0001, V_t=0.32, C_par=1.5e-14, I_dsc=1e-11, threshold=3.5, dt=0.001, paramsScale=1000000000000.0, variability=0.0, nsteps=1000, spike_grad=None, surrogate_disable=False, init_hidden=False, inhibition=False, learn_threshold=False, reset_mechanism='zero', state_quant=False, output=False, reset_delay=True, graded_spikes_factor=1.0, learn_graded_spikes_factor=False)[source]#
Used to detach hidden states from the current graph. Intended for use in truncated backpropagation through time where hidden state variables are instance variables.
Used to clear hidden state variables to zero. Intended for use where hidden state variables are instance variables.