Module ImportFrom alias Import alias identifier Import alias identifier ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Print Str AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index Num For NameStore Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Num Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Num If CompareNotEq SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Assign NameStore Dict For NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body If CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore Call NameLoad NameLoad If CompareEq NameLoad Num body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num Return Num Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpPow NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpPow NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad Assign NameStore BinOpSub NameLoad BinOpDiv BinOpMult NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMult BinOpSub NameLoad BinOpDiv BinOpPow NameLoad Num NameLoad BinOpSub NameLoad BinOpDiv BinOpPow NameLoad Num NameLoad If CompareEq NameLoad Num body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num Return Num Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad BinOpDiv NameLoad NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad BinOpDiv NameLoad NameLoad Return BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Num Assign NameStore Num For NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareLt NameLoad Num body Continue AugAssignAdd NameStore BinOpMult NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad AugAssignAdd NameStore NameLoad If CompareEq NameLoad Num body Return AttributeLoad NameLoad attr Return BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Num Print Str AttributeLoad NameLoad attr For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore BinOpPow BinOpSub NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Num Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Print Str NameLoad Return NameLoad decorator_list decorator_list
N/A __future__ division N/A numpy np N/A scipy sp Item_based_C N/A N/A __init__ N/A N/A self X N/A N/A N/A N/A self X N/A N/A np array X N/A the input data size is  N/A N/A self X shape N/A N/A self movie_user N/A N/A N/A self user_movie N/A N/A N/A self ave N/A N/A np mean N/A N/A self X N/A N/A N/A 2 N/A i N/A range N/A N/A N/A self X shape N/A 0 N/A N/A uid N/A N/A N/A self X N/A i N/A 0 N/A mid N/A N/A N/A self X N/A i N/A 1 N/A rat N/A N/A N/A self X N/A i N/A 2 N/A N/A N/A N/A self movie_user setdefault mid N/A N/A N/A N/A N/A self user_movie setdefault uid N/A N/A N/A N/A N/A self movie_user N/A mid N/A uid rat N/A N/A N/A N/A self user_movie N/A uid N/A mid rat N/A N/A self similarity N/A N/A N/A sim_cal N/A N/A self m1 m2 N/A N/A N/A N/A N/A N/A self similarity setdefault m1 N/A N/A N/A N/A N/A self similarity setdefault m2 N/A N/A N/A N/A N/A self movie_user setdefault m1 N/A N/A N/A N/A N/A self movie_user setdefault m2 N/A N/A N/A N/A N/A N/A self similarity N/A m1 setdefault m2 -1 N/A N/A N/A N/A N/A self similarity N/A m2 setdefault m1 -1 N/A N/A N/A N/A N/A self similarity N/A m1 N/A m2 -1 N/A N/A N/A N/A N/A self similarity N/A m1 N/A m2 N/A si N/A N/A user N/A N/A self movie_user N/A m1 N/A N/A N/A user N/A N/A self movie_user N/A m2 N/A N/A N/A si N/A user 1 N/A n N/A len si N/A N/A n 0 N/A N/A N/A N/A N/A self similarity N/A m1 N/A m2 1 N/A N/A N/A N/A self similarity N/A m2 N/A m1 1 N/A 1 N/A s1 N/A N/A np array N/A N/A N/A N/A self movie_user N/A m1 N/A u N/A u si N/A s2 N/A N/A np array N/A N/A N/A N/A self movie_user N/A m2 N/A u N/A u si N/A sum1 N/A N/A np sum s1 N/A sum2 N/A N/A np sum s2 N/A sum1Sq N/A N/A np sum N/A s1 2 N/A sum2Sq N/A N/A np sum N/A s2 2 N/A pSum N/A N/A np sum N/A s1 s2 N/A num N/A pSum N/A N/A sum1 sum2 n N/A den N/A N/A np sqrt N/A N/A sum1Sq N/A N/A sum1 2 n N/A sum2Sq N/A N/A sum2 2 n N/A N/A den 0 N/A N/A N/A N/A N/A self similarity N/A m1 N/A m2 0 N/A N/A N/A N/A self similarity N/A m2 N/A m1 0 N/A 0 N/A N/A N/A N/A self similarity N/A m1 N/A m2 N/A num den N/A N/A N/A N/A self similarity N/A m2 N/A m1 N/A num den N/A N/A num den N/A pred N/A N/A self uid mid N/A N/A N/A sim_accumulate 0.0 N/A rat_acc 0.0 N/A item N/A N/A self user_movie N/A uid N/A N/A sim N/A N/A self sim_cal item mid N/A N/A sim 0 N/A N/A N/A rat_acc N/A sim N/A N/A N/A self user_movie N/A uid N/A item N/A sim_accumulate sim N/A N/A sim_accumulate 0 N/A N/A N/A self ave N/A N/A rat_acc sim_accumulate N/A test N/A N/A self test_X N/A N/A N/A test_X N/A N/A np array test_X N/A output N/A N/A sums 0 N/A the test data size is  N/A test_X shape N/A i N/A range N/A N/A test_X shape N/A 0 N/A N/A pre N/A N/A self pred N/A N/A test_X N/A i N/A 0 N/A N/A test_X N/A i N/A 1 N/A N/A N/A output append pre N/A sums N/A N/A pre N/A N/A test_X N/A i N/A 2 2 N/A rmse N/A N/A np sqrt N/A sums N/A N/A test_X shape N/A 0 N/A the rmse on test data is  rmse N/A output N/A N/A