lenskit.data.load_movielens#

lenskit.data.load_movielens(path)#

Load a MovieLens dataset. The appropriate MovieLens format is detected based on the file contents.

Parameters:

path (str | Path) – The path to the dataset, either as an unpacked directory or a zip file.

Returns:

The dataset.

Return type:

Dataset