lenskit.splitting.TTSplit#
- class lenskit.splitting.TTSplit(train, test)#
Bases:
Generic
[TK
]A train-test set from splitting or other sources.
- Stability:
- Caller (see Stability Levels).
- Parameters:
train (Dataset)
test (ItemListCollection[TK])
- __init__(train, test)#
- Parameters:
train (Dataset)
test (ItemListCollection[TK])
- Return type:
None
Methods
__init__
(train, test)Attributes
Get the test data as a data frame.
Get the number of test pairs.
Get the training data as a data frame.
The training data.
The test data.
- test: ItemListCollection[TK]#
The test data.