ReciprocallyLinearWeights#

class frlearn.weights.ReciprocallyLinearWeights#

(12/25, 12/50, 12/75, 12/100) Also known as inverse additive weights.

Returns:
f: int -> np.array

Function that takes a positive integer k and returns a weight vector of length k with reciprocally linearly decreasing weights.