lenskit.splitting.SampleN#
- class lenskit.splitting.SampleN(n, rng=None)#
Bases:
HoldoutMethodRandomly select a fixed number of test rows per user/item.
- Stability:
- Caller (see Stability Levels).
- Parameters:
n (int) – The number of test items to select.
rng (Generator) – The random number generator or seed (see Random Seeds).
- __init__(n, rng=None)#
- Parameters:
n (int)
rng (int | Sequence[int] | SeedSequence | Generator | BitGenerator | None)
Methods
__init__(n[, rng])Attributes
nrng