ConstantWeights#
- class frlearn.weights.ConstantWeights#
(1/4, 1/4, 1/4, 1/4)
Also known as mean weights, as they compute the unweighted mean.- Returns:
- f: int -> np.array
Function that takes a positive integer
k
and returns a weight vector of lengthk
with constant weights.