lenskit.splitting.TTSplit#
- class lenskit.splitting.TTSplit(train, test, name=None)#
Bases:
Generic
[TK
]A train-test set from splitting or other sources.
- Stability:
- Caller (see Stability Levels).
- Parameters:
train (Dataset)
test (ItemListCollection[TK])
name (str | None)
- __init__(train, test, name=None)#
- Parameters:
train (Dataset)
test (ItemListCollection[TK])
name (str | None)
- Return type:
None
Methods
__init__
(train, test[, name])Attributes
A name for this train-test split.
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.