calix.spiking.neuron_threshold

Classes

LeakOverThresholdCalib(target)

Calibrate the neurons’ spike threshold such that the given spike rate is achieved in a leak over threshold setup, without any synaptic input.

NeuronThresholdCalib(safe_margin)

Calibrate the spike threshold of all neurons to be slightly above the resting potential, such that even small inputs can trigger spikes.

ThresholdCalibCADC(target, numpy.ndarray] = 125)

Calibrate the neurons’ spike threshold potential using the CADC.

ThresholdCalibMADC(target, numpy.ndarray] = 125)

Calibrate the neurons’ spike threshold potential using the MADC.

Functions

calix.spiking.neuron_threshold.check_range_boundaries(parameters: np.ndarray, boundaries: ParameterRange, errors: Optional[List[str]] = None)BoundaryCheckResult

Checks if parameters are in a given range and sets them to the limits if they exceed the range. If error messages are given, returns those if a parameter has reached the limits or has gone beyond.

Parameters
  • parameters – Array of parameters to check.

  • boundaries – Parameter range to be checked for.

  • errors – List of error messages to print when parameter exceeds respective boundaries, in format [err_lower, err_upper]. Message needs to include placeholer ‘{0}’ where indices of the violating parameters are inserted.

Returns

BoundaryCheckResult, containing parameters within boundaries, error mask and optional error messages.

calix.spiking.neuron_threshold.deepcopy(x, memo=None, _nil=[])

Deep copy operation on arbitrary Python objects.

See the module’s __doc__ string for more info.