Skip to content

Commit 653c9c8

Browse files
Mark LindermanMark Linderman
Mark Linderman
authored and
Mark Linderman
committed
added personal movie ratings to try out collab filtering
1 parent 09e31f4 commit 653c9c8

File tree

1 file changed

+42
-11
lines changed

1 file changed

+42
-11
lines changed

machine-learning-ex8/ex8/ex8_cofi.m

+42-11
Original file line numberDiff line numberDiff line change
@@ -128,22 +128,53 @@
128128

129129
% Check the file movie_idx.txt for id of each movie in our dataset
130130
% For example, Toy Story (1995) has ID 1, so to rate it "4", you can set
131-
my_ratings(1) = 4;
131+
%my_ratings(1) = 4;
132132

133133
% Or suppose did not enjoy Silence of the Lambs (1991), you can set
134-
my_ratings(98) = 2;
134+
%my_ratings(98) = 2;
135135

136136
% We have selected a few movies we liked / did not like and the ratings we
137137
% gave are as follows:
138-
my_ratings(7) = 3;
139-
my_ratings(12)= 5;
140-
my_ratings(54) = 4;
141-
my_ratings(64)= 5;
142-
my_ratings(66)= 3;
143-
my_ratings(69) = 5;
144-
my_ratings(183) = 4;
145-
my_ratings(226) = 5;
146-
my_ratings(355)= 5;
138+
%my_ratings(7) = 3;
139+
%my_ratings(12)= 5;
140+
%my_ratings(54) = 4;
141+
%my_ratings(64)= 5;
142+
%my_ratings(66)= 3;
143+
%my_ratings(69) = 5;
144+
%my_ratings(183) = 4;
145+
%my_ratings(226) = 5;
146+
%my_ratings(355)= 5;
147+
148+
my_ratings(10) = 5;
149+
my_ratings(98) = 4;
150+
my_ratings(14) = 5;
151+
my_ratings(15) = 2;
152+
my_ratings(23) = 5;
153+
my_ratings(28) = 5;
154+
my_ratings(35) = 1;
155+
my_ratings(50) = 5;
156+
my_ratings(52) = 5;
157+
my_ratings(56) = 5;
158+
my_ratings(58) = 4;
159+
my_ratings(67) = 2;
160+
my_ratings(70) = 5;
161+
my_ratings(69) = 4;
162+
my_ratings(88) = 1;
163+
my_ratings(94) = 3;
164+
my_ratings(96) = 5;
165+
my_ratings(100) = 5;
166+
my_ratings(132) = 4;
167+
my_ratings(153) = 4;
168+
my_ratings(190) = 5;
169+
my_ratings(197) = 5;
170+
my_ratings(204) = 4;
171+
my_ratings(208) = 1;
172+
my_ratings(212) = 1;
173+
my_ratings(265) = 4;
174+
my_ratings(417) = 2;
175+
176+
177+
147178

148179
fprintf('\n\nNew user ratings:\n');
149180
for i = 1:length(my_ratings)

0 commit comments

Comments
 (0)