Module Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad SubscriptLoad Call NameLoad NameLoad NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad ListLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword Str Index Num Call AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A sys N/A N/A N/A N/A sys path append ../../../recsys score user_based_knn cosine dataset DataIO model UserModel N/A ratings_file ../data/ratings.csv N/A items_file ../data/movie-titles.csv N/A NN 30 N/A answer_file part_1.csv N/A data N/A DataIO N/A N/A N/A data load ratings_file items_file items_file N/A model N/A UserModel normalize True N/A N/A N/A model build data N/A inputs N/A N/A 4169 161 N/A 4169 36955 N/A 4169 453 N/A 4169 857 N/A 4169 238 N/A 5399 1891 N/A 5399 14 N/A 5399 187 N/A 5399 602 N/A 5399 629 N/A 3613 329 N/A 3613 604 N/A 3613 134 N/A 3613 1637 N/A 3613 278 N/A 1873 786 N/A 1873 2502 N/A 1873 550 N/A 1873 1894 N/A 1873 1422 N/A 4914 268 N/A 4914 36658 N/A 4914 786 N/A 4914 161 N/A 4914 854 N/A file N/A open answer_file w N/A N/A N/A file write N/A N/A join N/A N/A %d,%d,%.4f,%s N/A u i N/A N/A user_based_knn model NN N/A N/A N/A data new_user_idx u N/A N/A N/A data new_item_idx i cosine promote_users True normalize centered N/A 0 N/A N/A data title i N/A N/A u i inputs N/A N/A N/A file close