lenskit.splitting.LastFrac#
- class lenskit.splitting.LastFrac(frac, field='timestamp')#
Bases:
HoldoutMethod
Select a fraction of test rows per user/item.
- Stability:
- Caller (see Stability Levels).
- Parameters:
frac (double) – the fraction of items to select for testing.
field (str)
Methods
__init__
(frac[, field])Attributes
fraction
field