lenskit.data.sources.movielens.MLData#

classlenskit.data.sources.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 =''#
staticversion_impl(version)#
Parameters:

version (str)

Return type:

collections.abc.Callable[Ellipsis, MLData]

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

Load the full dataset.

Return type:

lenskit.data._dataset.Dataset

abstractmethodratings_df()#

Load the ratings data frame.

Return type:

pandas.DataFrame