K-NN movie recommendation
2016-08-23
0 0 0
no vote
Other
Earn points
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')Newpython
knn
推荐
电影
Related Source Codes
Word memorization software
0
0
no vote
CWT Python example
0
0
no vote
STFT example
0
0
no vote
Chinese Speech Recognition
0
0
no vote
python-ela
0
0
no vote
No comment