lenskit.splitting.TTSplit#
- class lenskit.splitting.TTSplit#
A train-test set from splitting or other sources.
Changed in version 2026.1: Added the
test_requestsproperty.- Stability:
- Caller (see Stability Levels).
- train: lenskit.data.Dataset#
The training data.
- test: lenskit.data.ItemListCollection#
The test data.
- property test_df: pandas.DataFrame#
Get the test data as a data frame.
- Return type:
- property train_df: pandas.DataFrame#
Get the training data as a data frame.
- Return type:
- property test_requests: lenskit.batch.TestRequestAdapter#
Get the test data as a sequence of batch recommendation requests.
See also
- Returns:
An collection that iterates over recommendation requests derived from the test data.
- Return type: