LinearWeights¶
-
class
frlearn.weights.
LinearWeights
[source]¶ (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 length k with linearly decreasing weights.