norse.torch.functional.correlation_sensor module

class norse.torch.functional.correlation_sensor.CorrelationSensorParameters(eta_p, eta_m, tau_ac_inv, tau_c_inv)[source]

Bases: tuple

Create new instance of CorrelationSensorParameters(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.correlation_sensor.CorrelationSensorState(post_pre, correlation_trace, anti_correlation_trace)[source]

Bases: tuple

Create new instance of CorrelationSensorState(post_pre, correlation_trace, anti_correlation_trace)

anti_correlation_trace: torch.Tensor

Alias for field number 2

correlation_trace: torch.Tensor

Alias for field number 1

post_pre: torch.Tensor

Alias for field number 0

norse.torch.functional.correlation_sensor.correlation_based_update(ts, linear_update, weights, correlation_state, learning_rate, ts_frequency)[source]
norse.torch.functional.correlation_sensor.correlation_sensor_step(z_pre, z_post, state, p=CorrelationSensorParameters(eta_p=tensor(1.), eta_m=tensor(1.), tau_ac_inv=tensor(10.), tau_c_inv=tensor(10.)), dt=0.001)[source]

Euler integration step of an idealized version of the correlation sensor as it is present on the BrainScaleS 2 chips.

Return type

CorrelationSensorState