lenskit.splitting.LastFrac#

class lenskit.splitting.LastFrac(frac, field='timestamp')#

Bases: HoldoutMethod

Select a fraction of test rows per user/item.

Parameters:
  • frac (double) – the fraction of items to select for testing.

  • field (str)

__init__(frac, field='timestamp')#
Parameters:

Methods

__init__(frac[, field])

Attributes

fraction

field