#Error in the implementation of a recommendation system

12 messages · Page 1 of 1 (latest)

agile fractal
#

I am trying to implement (in javascript) a recommendation system that recommends books, using the knn algorithm.
I have a dataset composed of book_tags.csv , Books.csv , Ratings.csv , tags.csv , to_read.csv

#

Here is what each file looks like (they are longer of course)

book_tags.csv :

goodreads_book_id,tag_id,count
1,30574,167697
1,11305,37174

Books.csv :

ISBN,Book-Title,Book-Author,Year-Of-Publication,Publisher,Image-URL-S,Image-URL-M,Image-URL-L
0195153448,Classical Mythology,Mark P. O. Morford,2002,Oxford University Press,http://images.amazon.com/images/P/0195153448.01.THUMBZZZ.jpg,http://images.amazon.com/images/P/0195153448.01.MZZZZZZZ.jpg,http://images.amazon.com/images/P/0195153448.01.LZZZZZZZ.jpg
0002005018,Clara Callan,Richard Bruce Wright,2001,HarperFlamingo Canada,http://images.amazon.com/images/P/0002005018.01.THUMBZZZ.jpg,http://images.amazon.com/images/P/0002005018.01.MZZZZZZZ.jpg,http://images.amazon.com/images/P/0002005018.01.LZZZZZZZ.jpg

Ratings.csv :

User-ID,ISBN,Book-Rating
276725,034545104X,0
276726,0155061224,5

tags.csv :

tag_id,tag_name
0,-
1,--1-
2,--10-
19,--available-at-raspberrys--

to_read.csv :

user_id,book_id
1,112
1,235
1,533

#

here is my code for now :

#

However it doesn't work when i run it and i have this error :

#

I don't understand the error nor how to fix it, if someone understand and could explain it to me, i would be grateful

hallow stream
#

ml-knn hasn't been updated in 6 years?

#

That might be an issue

#

Apologies, 4 years