irspack.dataset.NeuMFML1MDownloader
- class irspack.dataset.NeuMFML1MDownloader(zippath=None, force_download=False)[source]
Bases:
NeuMFDownloaderManages MovieLens 1M dataset split under 1-vs-100 negative evaluation protocol.
- Parameters:
zippath (Optional[Union[Path, str]]) – Where the zipped data is located. If None, assumes the path to be ~/.neumf-ml-1m.zip. If the designated path does not exist, you will be prompted for the permission to download the data. Defaults to None.
force_download (bool) – If True, the class will not prompt for the permission and start downloading immediately.
- __init__(zippath=None, force_download=False)
Specify the zip path for dataset. If that path does not exist, try downloading the relevant data from online resources.
- Parameters:
zippath (Optional[Union[Path, str]], optional) – _description_. Defaults to None.
force_download (bool, optional) – _description_. Defaults to False.
- Raises:
RuntimeError – _description_
Methods
__init__([zippath, force_download])Specify the zip path for dataset.
read_train_test()Attributes
DEFAULT_PATHNEGATIVE_URLTRAIN_URL