norse.torch.functional.stdp_sensor module

class norse.torch.functional.stdp_sensor.STDPSensorParameters(eta_p: torch.Tensor = tensor(1.), eta_m: torch.Tensor = tensor(1.), tau_ac_inv: torch.Tensor = tensor(10.), tau_c_inv: torch.Tensor = tensor(10.))[source]

Bases: tuple

Parameters of an STDP sensor as it is used for event driven plasticity rules.

Parameters

Create new instance of STDPSensorParameters(eta_p, eta_m, tau_ac_inv, tau_c_inv)

eta_m: torch.Tensor

Alias for field number 1

eta_p: torch.Tensor

Alias for field number 0

tau_ac_inv: torch.Tensor

Alias for field number 2

tau_c_inv: torch.Tensor

Alias for field number 3

class norse.torch.functional.stdp_sensor.STDPSensorState(a_pre: torch.Tensor, a_post: torch.Tensor)[source]

Bases: tuple

State of an event driven STDP sensor.

Parameters

Create new instance of STDPSensorState(a_pre, a_post)

a_post: torch.Tensor

Alias for field number 1

a_pre: torch.Tensor

Alias for field number 0

norse.torch.functional.stdp_sensor.stdp_sensor_step(z_pre, z_post, state, p=STDPSensorParameters(eta_p=tensor(1.), eta_m=tensor(1.), tau_ac_inv=tensor(10.), tau_c_inv=tensor(10.)), dt=0.001)[source]

Event driven STDP rule.

Parameters
Return type

STDPSensorState