forked from SRidings/cs373-netflix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Netflix.html
64 lines (59 loc) · 4.62 KB
/
Netflix.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Netflix</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>Netflix</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/v/filer4b/v38q001/sridings/cs373-netflix/Netflix.py">/v/filer4b/v38q001/sridings/cs373-netflix/Netflix.py</a></font></td></tr></table>
<p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="json.html">json</a><br>
</td><td width="25%" valign=top><a href="math.html">math</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-netflix_predict"><strong>netflix_predict</strong></a>(customerAverage, movAvg, custDecadeAverage)</dt><dd><tt>Currently experimenting with implementation #1<br>
Trying different combinations of numerators and<br>
denominators.</tt></dd></dl>
<dl><dt><a name="-netflix_rate"><strong>netflix_rate</strong></a>(r, w)</dt><dd><tt>r is the reader<br>
w is the writer<br>
Generates predictions of ratings based on the <br>
given input from sys in (Probe.txt). The predictions<br>
are given by netflix_predict.<br>
<br>
The rmse is also calculated by keeping track of the<br>
running sum of the square differences instead of keeping<br>
the actual and corresponding predicted values in separate<br>
lists.</tt></dd></dl>
<dl><dt><a name="-netflix_read"><strong>netflix_read</strong></a>(r)</dt><dd><tt>Input r is a reader. r reads from sys. in<br>
reads in a line from probe.txt</tt></dd></dl>
<dl><dt><a name="-netflix_write"><strong>netflix_write</strong></a>(s, w)</dt><dd><tt>writes the object s to the writer w.<br>
It appends a new line also.</tt></dd></dl>
<dl><dt><a name="-rmse"><strong>rmse</strong></a>(runningSqDiff, count)</dt><dd><tt>rmse calculates the root mean square error.<br>
It is given the running sum of square differences<br>
and the count to divide by. The square root is then <br>
returned.</tt></dd></dl>
<dl><dt><a name="-sqre_diff"><strong>sqre_diff</strong></a>(a, p)</dt><dd><tt>returns ( a - p ) squared</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>glbl_path_to_answer_cache</strong> = '/u/sridings/netflix-tests/netflix-tests/osl62-AnswerCache.json'<br>
<strong>glbl_path_to_average_rating</strong> = '/u/sridings/netflix-tests/netflix-tests/rbrooks-movie_average_rating.json'<br>
<strong>glbl_path_to_cust_avg</strong> = '/u/sridings/netflix-tests/netflix-tests/bryan-customer_cache.json'<br>
<strong>glbl_path_to_cust_cache_by_dec</strong> = '/u/sridings/netflix-tests/netflix-tests/ahsu-cust_by_decade.json'<br>
<strong>glbl_path_to_movie_cache_by_dec</strong> = '/u/sridings/netflix-tests/netflix-tests/isabella-movie_decades_cache.json'<br>
<strong>user</strong> = 'sridings/netflix-tests/'</td></tr></table>
</body></html>