mgng.validators module

Validators for numerical data

mgng.validators.is_weight_factor(instance: Any, attribute, value: float)[source]

Validator for decay factors \(\gamma\) : \(0 < \gamma < \leq 1\)

Parameters
  • instance (Any) –

  • attribute (str) – The name of the attribute

  • value (float) – The value of the attribute

mgng.validators.is_greater_zero(instance: Any, attribute, value: float)[source]

Validator to check for stricly positive values.

mgng.validators.repr_ndarray(array: numpy.ndarray)[source]

Print array dimensions.

Parameters

a (np.ndarray) –