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 length k.

References