Module Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Slice NameLoad Assign NameStore ListComp SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Num Assign NameStore ListLoad With Call NameLoad Str Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num Num Assign NameStore BinOpSub Call NameLoad NameLoad Num Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr ListComp ListComp IfExp CompareNotEq NameLoad Str Call NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad NameLoad Slice Num comprehension NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Expr Call NameLoad NameLoad NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareLt NameLoad Num NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad BinOpMod Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad BinOpMod Str NameLoad Assign NameStore AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Index Num attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr BinOpMult ListLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Num Assign NameStore BinOpDiv NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad ExtSlice Slice Index Num Assign NameStore Num Expr Call NameLoad NameLoad NameLoad NameLoad BinOpMod Str NameLoad
N/A N/A csv N/A numpy write_top_n_titles N/A N/A titles_list metric_array n filename N/A N/A N/A top_n_metric_indices N/A N/A N/A N/A metric_array argsort N/A -1 N/A n N/A top_n_metric_titles N/A N/A N/A titles_list N/A i N/A 0 N/A i top_n_metric_indices N/A file N/A open filename w N/A t top_n_metric_titles N/A N/A N/A N/A file write N/A %s
 t N/A N/A N/A file close N/A N/A n 5 N/A raw_data N/A N/A N/A open matrix.csv rbU csvfile N/A N/A movie_reader N/A N/A csv reader csvfile delimiter , N/A row movie_reader N/A N/A N/A N/A raw_data append row N/A num_titles N/A N/A len N/A raw_data N/A 0 1 N/A num_users N/A N/A len raw_data 1 N/A N/A Read ratings for %d movies from %d users N/A num_titles num_users N/A titles N/A N/A N/A t split : N/A t N/A N/A raw_data N/A 0 N/A 1 N/A users N/A N/A r N/A 0 N/A r N/A raw_data N/A 1 N/A ratings N/A N/A numpy array N/A N/A N/A N/A c N/A int c N/A numpy nan N/A c N/A r N/A 1 N/A r N/A raw_data N/A 1 N/A masked_nans N/A N/A N/A numpy ma masked_array ratings N/A N/A numpy isnan ratings N/A mean_ratings N/A N/A numpy mean masked_nans 0 N/A N/A write_top_n_titles titles mean_ratings n N/A top_%d_mean.txt n N/A all_ratings N/A N/A N/A numpy ma count masked_nans 0 N/A masked_low N/A N/A numpy logical_or N/A N/A N/A numpy ma masked_array ratings N/A ratings 4 masked_nans N/A high_ratings N/A N/A N/A numpy ma count masked_low 0 N/A best_ratio N/A N/A numpy true_divide high_ratings all_ratings N/A N/A write_top_n_titles titles best_ratio n N/A top_%d_best.txt n N/A N/A write_top_n_titles titles all_ratings n N/A top_%d_count.txt n N/A star_wars_users_mask N/A N/A masked_nans N/A N/A N/A 0 mask N/A star_wars_users_mask_matrix N/A N/A N/A numpy array N/A N/A star_wars_users_mask num_titles T N/A cooc_star_wars_mask N/A N/A numpy logical_or N/A masked_nans mask star_wars_users_mask_matrix N/A cooc_star_wars_count N/A N/A N/A numpy ma count N/A N/A N/A numpy ma masked_array ratings cooc_star_wars_mask 0 N/A cooc_star_wars_ratio N/A cooc_star_wars_count N/A float N/A N/A N/A numpy ma count N/A masked_nans N/A N/A N/A 0 N/A n 6 N/A N/A write_top_n_titles titles cooc_star_wars_ratio n N/A top_%d_star_wars.txt n