lenskit.data.load_ms_web#

lenskit.data.load_ms_web(path: Path, format: Literal['dataset'] = 'dataset') Dataset#
lenskit.data.load_ms_web(path: Path, format: Literal['collection']) ItemListCollection
lenskit.data.load_ms_web(path: Path, format: Literal['dataset', 'collection'] = 'dataset') Dataset | ItemListCollection

Load the MSWeb data set.

The Microsoft Anonymous Web data set was published by , and is available from the UCI repository.

This function can load the data either as a Dataset (useful for training) or as an ItemListCollection (for evaluation).

Parameters:
  • path – The path to the data file (gzip-compressed).

  • format – The type of object to load the data set into.

Returns:

The loaded MSWeb data.