Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
K-NN movie recommendation
no vote
Application background #coding:utf8Numpy as NP importSklearn import neighbors fromCSV import"" "" "which reads from the file and yields a Function generator"""OriginReader = csv.reader (file ("C:\Users\uuuu\Desktop\movie\u2.csv",'rb'))List2 = []Line2 in originReader: for        List2.append (line2)         CloudReader = csv.reader;   (file ("C:\Users\uuuuu\Desktop\movie\movie.csv",'rb'))List1 = []                    line; in cloudReader: for         List1.append (line[0])     L1 = []L2 = []Index value, in enumerate for (List1):          value; if! ='0':            L1.append (List1[index]);;;            L2.append (List2[index]);;;           L1 = np.matrix (L1, dtype='float64')L2 = np.matrix (L2, dtype='float64')New
鸿蒙114
2016-08-23
0
1
No more~