Weights#
- class frlearn.weights.Weights#
Abstract base class for parametrisable weights functions. Classes that inherit from
Weightsshould overwrite__call__with the weight function, while__init__can be used to set any parameters.- Returns:
- f: int -> np.array
Function that takes a positive integer
kand returns a weight vector of lengthk.
References