Module ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias identifier FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMult BinOpAdd BinOpDiv NameLoad Num Num Num If CompareEq BinOpMod NameLoad NameLoad Num body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad Call NameLoad Lambda arguments args NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad TupleLoad NameLoad BinOpAdd Call NameLoad NameLoad Num keyword AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call NameLoad BinOpDiv NameLoad Num Num Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore DictComp NameLoad Call NameLoad keyword NameLoad comprehension NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index NameLoad decorator_list
N/A models Review Wine Cluster django.contrib.auth.models User sklearn.cluster KMeans scipy.sparse dok_matrix csr_matrix N/A numpy np update_clusters N/A N/A N/A N/A N/A num_reviews N/A N/A N/A Review objects count N/A update_step N/A N/A N/A num_reviews 100 1 5 N/A N/A N/A num_reviews update_step 0 N/A N/A all_user_names N/A map N/A N/A N/A x N/A N/A x username N/A N/A N/A User objects only username N/A all_wine_ids N/A set N/A map N/A N/A N/A x N/A N/A N/A x wine id N/A N/A N/A Review objects only wine N/A num_users N/A len all_user_names N/A ratings_m N/A dok_matrix N/A num_users N/A N/A max all_wine_ids 1 dtype N/A np float32 N/A i N/A range num_users N/A N/A user_reviews N/A N/A N/A Review objects filter user_name N/A all_user_names N/A i N/A user_review user_reviews N/A N/A N/A ratings_m N/A N/A i N/A N/A user_review wine id N/A user_review rating N/A k N/A N/A int N/A num_users 10 2 N/A kmeans N/A KMeans n_clusters k N/A clustering N/A N/A kmeans fit N/A N/A ratings_m tocsr N/A N/A N/A N/A N/A N/A Cluster objects all delete N/A new_clusters N/A i N/A Cluster name i N/A i N/A range k N/A cluster N/A N/A new_clusters values N/A N/A N/A N/A cluster save N/A N/A i cluster_label N/A enumerate N/A clustering labels_ N/A N/A N/A N/A N/A N/A new_clusters N/A cluster_label users add N/A N/A N/A User objects get username N/A all_user_names N/A i N/A