SNN2.src.model.callbacks.ControlledMarginIncreas module
- SNN2.src.model.callbacks.ControlledMarginIncreas.sigmoid(k: float = 3.0, adjusting_value: float = 15.0, limit: float = 10, precision: int = 4) Callable
apply_sigmoid_fn. Function used to apply a sigmoid to the input
- Parameters:
k (float) – k parameter used to adjust the curvature of the sigmoid
adjusting_value (float) – adjusting_value parameter used to adjust the center of the sigmoid
- Returns:
Callable, the sigmoid function configured as required with a
precision of 4 decimal points