diff --git a/cornac/datasets/movielens.py b/cornac/datasets/movielens.py index 99aa92b4..6411ce4a 100644 --- a/cornac/datasets/movielens.py +++ b/cornac/datasets/movielens.py @@ -28,28 +28,28 @@ MovieLens = namedtuple("MovieLens", ["url", "unzip", "path", "sep", "skip"]) ML_DATASETS = { "100K": MovieLens( - "http://files.grouplens.org/datasets/movielens/ml-100k/u.data", + "https://static.preferred.ai/cornac/datasets/movielens/ml-100k/u.data", False, "ml-100k/u.data", "\t", 0, ), "1M": MovieLens( - "http://files.grouplens.org/datasets/movielens/ml-1m.zip", + "https://static.preferred.ai/cornac/datasets/movielens/ml-1m.zip", True, "ml-1m/ratings.dat", "::", 0, ), "10M": MovieLens( - "http://files.grouplens.org/datasets/movielens/ml-10m.zip", + "https://static.preferred.ai/cornac/datasets/movielens/ml-10m.zip", True, "ml-10M100K/ratings.dat", "::", 0, ), "20M": MovieLens( - "http://files.grouplens.org/datasets/movielens/ml-20m.zip", + "https://static.preferred.ai/cornac/datasets/movielens/ml-20m.zip", True, "ml-20m/ratings.csv", ",", diff --git a/examples/given_data.py b/examples/given_data.py index a3b533ba..9975ab22 100644 --- a/examples/given_data.py +++ b/examples/given_data.py @@ -24,10 +24,10 @@ # Download MovieLens 100K provided train and test sets reader = Reader() train_data = reader.read( - cache(url="http://files.grouplens.org/datasets/movielens/ml-100k/u1.base") + cache(url="https://static.preferred.ai/cornac/datasets/movielens/ml-100k/u1.base") ) test_data = reader.read( - cache(url="http://files.grouplens.org/datasets/movielens/ml-100k/u1.test") + cache(url="https://static.preferred.ai/cornac/datasets/movielens/ml-100k/u1.test") ) # Instantiate a Base evaluation method using the provided train and test sets