Weights#
- class frlearn.weights.Weights#
Abstract base class for parametrisable weights functions. Classes that inherit from
Weights
should 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
k
and returns a weight vector of lengthk
.
References