LinearWeights#
- class frlearn.weights.LinearWeights#
(4/10, 3/10, 2/10, 1/10)
Also known as additive weights.- Returns:
- f: int -> np.array
Function that takes a positive integer
k
and returns a weight vector of lengthk
with linearly decreasing weights.