lenskit.data.movielens.MLData#

class lenskit.data.movielens.MLData(version, source, prefix='')#

Internal class representing an open ML data set.

Stability: Internal

This API is at the internal or experimental stability level: it may change at any time, and breaking changes will not necessarily be described in the release notes. See Stability Levels for details.

Parameters:
version: str#
source: pathlib.Path | zipfile.ZipFile#
prefix: str = ''#
static version_impl(version)#
Parameters:

version (str)

Return type:

collections.abc.Callable[Ellipsis, MLData]

__enter__()#
__exit__(*args)#
open_file(name, encoding='utf8')#
Parameters:
abstractmethod dataset()#

Load the full dataset.

Return type:

lenskit.data._dataset.Dataset

abstractmethod ratings_df()#

Load the ratings data frame.

Return type:

pandas.DataFrame