Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download

DSE200x Week 4 Notes

Views: 1915
1
Summary
2
=======
3
4
This dataset (ml-latest-small) describes 5-star rating and free-text tagging activity from [MovieLens](http://movielens.org), a movie recommendation service. It contains 100836 ratings and 3683 tag applications across 9742 movies. These data were created by 610 users between March 29, 1996 and September 24, 2018. This dataset was generated on September 26, 2018.
5
6
Users were selected at random for inclusion. All selected users had rated at least 20 movies. No demographic information is included. Each user is represented by an id, and no other information is provided.
7
8
The data are contained in the files `links.csv`, `movies.csv`, `ratings.csv` and `tags.csv`. More details about the contents and use of all these files follows.
9
10
This is a *development* dataset. As such, it may change over time and is not an appropriate dataset for shared research results. See available *benchmark* datasets if that is your intent.
11
12
This and other GroupLens data sets are publicly available for download at <http://grouplens.org/datasets/>.
13
14
15
Usage License
16
=============
17
18
Neither the University of Minnesota nor any of the researchers involved can guarantee the correctness of the data, its suitability for any particular purpose, or the validity of results based on the use of the data set. The data set may be used for any research purposes under the following conditions:
19
20
* The user may not state or imply any endorsement from the University of Minnesota or the GroupLens Research Group.
21
* The user must acknowledge the use of the data set in publications resulting from the use of the data set (see below for citation information).
22
* The user may redistribute the data set, including transformations, so long as it is distributed under these same license conditions.
23
* The user may not use this information for any commercial or revenue-bearing purposes without first obtaining permission from a faculty member of the GroupLens Research Project at the University of Minnesota.
24
* The executable software scripts are provided "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of them is with you. Should the program prove defective, you assume the cost of all necessary servicing, repair or correction.
25
26
In no event shall the University of Minnesota, its affiliates or employees be liable to you for any damages arising out of the use or inability to use these programs (including but not limited to loss of data or data being rendered inaccurate).
27
28
If you have any further questions or comments, please email <[email protected]>
29
30
31
Citation
32
========
33
34
To acknowledge use of the dataset in publications, please cite the following paper:
35
36
> F. Maxwell Harper and Joseph A. Konstan. 2015. The MovieLens Datasets: History and Context. ACM Transactions on Interactive Intelligent Systems (TiiS) 5, 4: 19:1–19:19. <https://doi.org/10.1145/2827872>
37
38
39
Further Information About GroupLens
40
===================================
41
42
GroupLens is a research group in the Department of Computer Science and Engineering at the University of Minnesota. Since its inception in 1992, GroupLens's research projects have explored a variety of fields including:
43
44
* recommender systems
45
* online communities
46
* mobile and ubiquitious technologies
47
* digital libraries
48
* local geographic information systems
49
50
GroupLens Research operates a movie recommender based on collaborative filtering, MovieLens, which is the source of these data. We encourage you to visit <http://movielens.org> to try it out! If you have exciting ideas for experimental work to conduct on MovieLens, send us an email at <[email protected]> - we are always interested in working with external collaborators.
51
52
53
Content and Use of Files
54
========================
55
56
Formatting and Encoding
57
-----------------------
58
59
The dataset files are written as [comma-separated values](http://en.wikipedia.org/wiki/Comma-separated_values) files with a single header row. Columns that contain commas (`,`) are escaped using double-quotes (`"`). These files are encoded as UTF-8. If accented characters in movie titles or tag values (e.g. Misérables, Les (1995)) display incorrectly, make sure that any program reading the data, such as a text editor, terminal, or script, is configured for UTF-8.
60
61
62
User Ids
63
--------
64
65
MovieLens users were selected at random for inclusion. Their ids have been anonymized. User ids are consistent between `ratings.csv` and `tags.csv` (i.e., the same id refers to the same user across the two files).
66
67
68
Movie Ids
69
---------
70
71
Only movies with at least one rating or tag are included in the dataset. These movie ids are consistent with those used on the MovieLens web site (e.g., id `1` corresponds to the URL <https://movielens.org/movies/1>). Movie ids are consistent between `ratings.csv`, `tags.csv`, `movies.csv`, and `links.csv` (i.e., the same id refers to the same movie across these four data files).
72
73
74
Ratings Data File Structure (ratings.csv)
75
-----------------------------------------
76
77
All ratings are contained in the file `ratings.csv`. Each line of this file after the header row represents one rating of one movie by one user, and has the following format:
78
79
userId,movieId,rating,timestamp
80
81
The lines within this file are ordered first by userId, then, within user, by movieId.
82
83
Ratings are made on a 5-star scale, with half-star increments (0.5 stars - 5.0 stars).
84
85
Timestamps represent seconds since midnight Coordinated Universal Time (UTC) of January 1, 1970.
86
87
88
Tags Data File Structure (tags.csv)
89
-----------------------------------
90
91
All tags are contained in the file `tags.csv`. Each line of this file after the header row represents one tag applied to one movie by one user, and has the following format:
92
93
userId,movieId,tag,timestamp
94
95
The lines within this file are ordered first by userId, then, within user, by movieId.
96
97
Tags are user-generated metadata about movies. Each tag is typically a single word or short phrase. The meaning, value, and purpose of a particular tag is determined by each user.
98
99
Timestamps represent seconds since midnight Coordinated Universal Time (UTC) of January 1, 1970.
100
101
102
Movies Data File Structure (movies.csv)
103
---------------------------------------
104
105
Movie information is contained in the file `movies.csv`. Each line of this file after the header row represents one movie, and has the following format:
106
107
movieId,title,genres
108
109
Movie titles are entered manually or imported from <https://www.themoviedb.org/>, and include the year of release in parentheses. Errors and inconsistencies may exist in these titles.
110
111
Genres are a pipe-separated list, and are selected from the following:
112
113
* Action
114
* Adventure
115
* Animation
116
* Children's
117
* Comedy
118
* Crime
119
* Documentary
120
* Drama
121
* Fantasy
122
* Film-Noir
123
* Horror
124
* Musical
125
* Mystery
126
* Romance
127
* Sci-Fi
128
* Thriller
129
* War
130
* Western
131
* (no genres listed)
132
133
134
Links Data File Structure (links.csv)
135
---------------------------------------
136
137
Identifiers that can be used to link to other sources of movie data are contained in the file `links.csv`. Each line of this file after the header row represents one movie, and has the following format:
138
139
movieId,imdbId,tmdbId
140
141
movieId is an identifier for movies used by <https://movielens.org>. E.g., the movie Toy Story has the link <https://movielens.org/movies/1>.
142
143
imdbId is an identifier for movies used by <http://www.imdb.com>. E.g., the movie Toy Story has the link <http://www.imdb.com/title/tt0114709/>.
144
145
tmdbId is an identifier for movies used by <https://www.themoviedb.org>. E.g., the movie Toy Story has the link <https://www.themoviedb.org/movie/862>.
146
147
Use of the resources listed above is subject to the terms of each provider.
148
149
150
Cross-Validation
151
----------------
152
153
Prior versions of the MovieLens dataset included either pre-computed cross-folds or scripts to perform this computation. We no longer bundle either of these features with the dataset, since most modern toolkits provide this as a built-in feature. If you wish to learn about standard approaches to cross-fold computation in the context of recommender systems evaluation, see [LensKit](http://lenskit.org) for tools, documentation, and open-source code examples.
154
155