Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cornac/datasets/movielens.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Comment on lines 30 to 36
"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",
Comment on lines 37 to +45
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",
",",
Expand Down
4 changes: 2 additions & 2 deletions examples/given_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading