MCPcopy Create free account

hub / github.com/YudiXiong/CVGAE / functions

Functions65 in github.com/YudiXiong/CVGAE

↓ 17 callersFunctionpprint
(_str,file)
Code/utility/helper.py:21
↓ 4 callersMethodcreate_cross_loss
(self, users, pos_items, labels)
Code/model.py:289
↓ 3 callersMethodcreate_kl_loss
(self,z_u_source, z_i_source, z_u_target, z_i_target, mu_i_source, logsig_i_source, mu_i_target, logsig_i_targ
Code/model.py:392
↓ 3 callersFunctionensureDir
(dir_path)
Code/utility/helper.py:16
↓ 3 callersFunctiontest
(model, data_generator, test_user_list, data_type, batch_size, ks, layer_size, device)
Code/utility/batch_test.py:25
↓ 2 callersMethod_convert_sp_mat_to_sp_tensor
(self, X)
Code/model.py:330
↓ 2 callersMethod_init_weights
(self, name_scope, n_items, user_embedding)
Code/model.py:116
↓ 2 callersMethod_split_A_hat
(self, X, n_items)
Code/model.py:129
↓ 2 callersMethod_split_A_hat_node_dropout
(self, X, n_items)
Code/model.py:143
↓ 2 callersFunctiondcg_at_k
(r, k, method=1)
Code/utility/metrics.py:29
↓ 2 callersFunctionearly_stopping
(log_hr, best_hr,stopping_step , flag_step=100)
Code/utility/helper.py:41
↓ 2 callersFunctionfind_best_epoch
(ndcg_loger, hit_loger, mrr_loger, domain_type)
Code/main.py:81
↓ 2 callersMethodget_R_mat
(self)
Code/utility/load_data.py:68
↓ 2 callersFunctionget_adj_mat
(config, data_generator, adj_type, domain_type)
Code/main.py:37
↓ 2 callersFunctionget_pretrain_ret
(data_generator, test_user_list, data_status, data_type, Ks, BATCH_SIZE, layer_size)
Code/main.py:59
↓ 2 callersMethodget_scores
(self, users, pos_items)
Code/model.py:285
↓ 2 callersMethodget_sparsity_split
(self)
Code/utility/load_data.py:174
↓ 2 callersMethodget_train_instance
(self)
Code/utility/load_data.py:150
↓ 2 callersMethodprint_statistics
(self,save_log)
Code/utility/load_data.py:168
↓ 2 callersFunctionprint_test_result
(hr, ndcg, mrr, train_time, test_time, domain_type, data_status)
Code/main.py:74
↓ 1 callersMethodVAE_embed
(self, ua_embeddings_s, ia_embeddings_s, ua_embeddings_t, ia_embeddings_t, run_flag)
Code/model.py:356
↓ 1 callersMethod_create_embed
(self, weights_s, weights_t, norm_adj_s, norm_adj_t)
Code/model.py:160
↓ 1 callersMethod_dropout_sparse
(self, x, rate, noise_shape)
Code/model.py:339
↓ 1 callersFunctionaverage_precision
(r,cut)
Code/utility/metrics.py:19
↓ 1 callersMethodcreate_adj_mat
(self)
Code/utility/load_data.py:86
↓ 1 callersMethodcreate_sparsity_split
(self)
Code/utility/load_data.py:198
↓ 1 callersFunctiongetHitRatio
(ranklist, gtItem)
Code/utility/batch_test.py:117
↓ 1 callersFunctiongetMRR
(ranklist, gtItem)
Code/utility/batch_test.py:130
↓ 1 callersFunctiongetNDCG
(ranklist, gtItem)
Code/utility/batch_test.py:123
↓ 1 callersMethodget_adj_mat
(self)
Code/utility/load_data.py:71
↓ 1 callersFunctionget_test_instance
()
Code/utility/batch_test.py:101
↓ 1 callersFunctionload_pretrained_data
()
Code/main.py:28
↓ 1 callersFunctionparse_args
()
Code/utility/parser.py:11
↓ 1 callersFunctionparse_args
()
attack/camouflaged_attribute_embedding.py:17
↓ 1 callersFunctionparse_args
()
attack/attribute_inference_attacks.py:31
↓ 1 callersFunctionprecision_at_k
(r, k)
Code/utility/metrics.py:14
↓ 1 callersMethodread_neg_file
(self,path)
Code/utility/load_data.py:129
↓ 1 callersMethods_t_la2add_layer
(self, ego_embeddings_s, ego_embeddings_t)
Code/model.py:238
↓ 1 callersFunctionset_seed
(seed)
Code/main.py:21
FunctionF1
(pre, rec)
Code/utility/metrics.py:57
Method__init__
(self, data_config, args, pretrain_data, device)
Code/model.py:20
Method__init__
(self, path, batch_size,neg_num)
Code/utility/load_data.py:15
Method__init__
(self, input_dim, hidden_dim, output_dim)
attack/camouflaged_attribute_embedding.py:27
Functionauc
(ground_truth, prediction)
Code/utility/metrics.py:63
Methodcheck_adj_if_equal
(adj)
Code/utility/load_data.py:115
FunctiondelMultiChar
(inputString, chars)
Code/utility/helper.py:31
Methodforward
(self, users_s, items_s, users_t, items_t, run_flag)
Code/model.py:304
Methodforward
(self, indices)
attack/camouflaged_attribute_embedding.py:37
Methodget_num_users_items
(self)
Code/utility/load_data.py:165
Methodget_test_neg_item
(self,u,negativeList)
Code/utility/load_data.py:147
FunctionhasNumbers
(inputString)
Code/utility/helper.py:28
Functionhit_at_k
(r, k)
Code/utility/metrics.py:50
Functionmean_average_precision
(rs)
Code/utility/metrics.py:26
Functionmerge_two_dicts
(x, y)
Code/utility/helper.py:36
Functionndcg_at_k
(r, k, method=1)
Code/utility/metrics.py:40
Methodnormalized_adj_bi
(adj)
Code/utility/load_data.py:107
Methodnormalized_adj_single
(adj)
Code/utility/load_data.py:98
Methodone_graph_layer_gcf
(A_fold_hat, ego_embeddings, weights, k)
Code/model.py:163
Methodprotect_privacy_s
(self, user_s_em)
Code/model.py:224
Methodprotect_privacy_t
(self, user_s_em)
Code/model.py:228
Functionrecall
(rank, ground_truth, N)
Code/utility/metrics.py:11
Functionrecall_at_k
(r, k, all_pos_num)
Code/utility/metrics.py:46
Functionsearch_index_from_file
(string)
Code/utility/helper.py:55
Functiontxt2list
(file_src)
Code/utility/helper.py:11
Functionuni2str
(unicode_str)
Code/utility/helper.py:25