MCPcopy Create free account

hub / github.com/HKUDS/PromptMM / functions

Functions277 in github.com/HKUDS/PromptMM

Methodget_embedding
(self)
codes/Models.py:528
Functionget_sparse_laplacian
(edge_index, edge_weight, num_nodes, normalization='none')
codes/utility/norm.py:55
Functionhit_at_k
(r, k)
LATTICE/codes/utility/metrics.py:82
Functionhit_at_k
(r, k)
codes/utility/metrics.py:82
Methodinit_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_mmlight.py:370
Methodinit_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_mmlight.py:448
Methodinit_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_mmlight.py:660
Methodinit_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_empower.py:328
Methodinit_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_empower.py:540
Methodinit_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models.py:328
MethodinnerProduct
(self, u_pos, i_pos, u_neg, j_neg)
codes/main_mmlight.py:141
MethodinnerProduct
(self, u_pos, i_pos, u_neg, j_neg)
codes/main_empower.py:141
MethodinnerProduct
(self, u_pos, i_pos, u_neg, j_neg)
codes/main.py:141
Methodl2_loss
(self)
codes/Models_mmlight.py:519
Methodl2_loss
(self)
codes/Models_empower.py:399
Methodl2_loss
(self)
codes/Models.py:399
Methodmatrix_to_tensor
(self, cur_matrix)
codes/Models_mmlight.py:108
Methodmatrix_to_tensor
(self, cur_matrix)
codes/Models_empower.py:108
Methodmatrix_to_tensor
(self, cur_matrix)
codes/Models.py:108
Functionmean_average_precision
Score is mean average precision Relevance is binary (nonzero is relevant). Returns: Mean average precision
LATTICE/codes/utility/metrics.py:34
Functionmean_average_precision
Score is mean average precision Relevance is binary (nonzero is relevant). Returns: Mean average precision
codes/utility/metrics.py:34
Methodmm
(self, x, y)
codes/Models_mmlight.py:359
Methodmulti_head_self_attention
(self, trans_w, embedding_t_1, embedding_t)
codes/Models_mmlight.py:131
Methodmulti_head_self_attention
(self, trans_w, embedding_t_1, embedding_t)
codes/Models_empower.py:131
Methodmulti_head_self_attention
(self, trans_w, embedding_t_1, embedding_t)
codes/Models.py:131
Functionndcg_at_k
Score is normalized discounted cumulative gain (ndcg) Relevance is positive real values. Can use binary as the previous methods. Returns:
LATTICE/codes/utility/metrics.py:61
Functionndcg_at_k
Score is normalized discounted cumulative gain (ndcg) Relevance is positive real values. Can use binary as the previous methods. Returns:
codes/utility/metrics.py:61
Methodnormalized_adj_single
(adj)
LATTICE/codes/utility/load_data.py:127
Methodnormalized_adj_single
(adj)
codes/utility/load_data.py:120
MethodpairPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss, negs)
codes/Models_mmlight.py:675
MethodpairPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss, negs)
codes/Models_empower.py:555
MethodpointNegPredictwEmbeds
(self, embeds1, embeds2, nodes1, temp=1.0)
codes/Models_mmlight.py:670
MethodpointNegPredictwEmbeds
(self, embeds1, embeds2, nodes1, temp=1.0)
codes/Models_empower.py:550
MethodpointNegPredictwEmbeds
(self, embeds1, embeds2, nodes1, temp=1.0)
codes/Models.py:550
MethodpointPosPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss)
codes/Models_mmlight.py:664
MethodpointPosPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss)
codes/Models_empower.py:544
MethodpointPosPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss)
codes/Models.py:544
Functionrecall
(rank, ground_truth, N)
LATTICE/codes/utility/metrics.py:4
Functionrecall
(rank, ground_truth, N)
codes/utility/metrics.py:4
Functionrecall_at_k
(r, k, all_pos_num)
LATTICE/codes/utility/metrics.py:74
Functionrecall_at_k
(r, k, all_pos_num)
codes/utility/metrics.py:74
Methodreward_loss_calculation
(self, users, re_u, re_i, topk_id, topk_p)
codes/main_mmlight.py:277
Methodreward_loss_calculation
(self, users, re_u, re_i, topk_id, topk_p)
codes/main_empower.py:277
Methodreward_loss_calculation
(self, users, re_u, re_i, topk_id, topk_p)
codes/main.py:277
Methodsample_neg_items_for_u
(u, num)
LATTICE/codes/utility/load_data.py:182
Methodsample_neg_items_for_u
(u, num)
codes/utility/load_data.py:175
Methodsample_neg_items_for_u_from_pools
(u, num)
LATTICE/codes/utility/load_data.py:191
Methodsample_neg_items_for_u_from_pools
(u, num)
codes/utility/load_data.py:184
Methodsample_pos_items_for_u
(u, num)
LATTICE/codes/utility/load_data.py:169
Methodsample_pos_items_for_u
(u, num)
codes/utility/load_data.py:162
Methodsample_topk
(self, u_sim, users, emb_type=None)
codes/main_mmlight.py:185
Methodsample_topk
(self, u_sim, users, emb_type=None)
codes/main_empower.py:185
Methodsample_topk
(self, u_sim, users, emb_type=None)
codes/main.py:185
Methodsim
(self, z1, z2)
codes/Models_mmlight.py:364
Functionsparse_dropout
:param x: :param rate: :param noise_shape: int scalar :return:
codes/Models_mmlight.py:578
Functionsparse_dropout
:param x: :param rate: :param noise_shape: int scalar :return:
codes/Models_empower.py:458
Functionsparse_dropout
:param x: :param rate: :param noise_shape: int scalar :return:
codes/Models.py:458
Methodsparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
codes/main_mmlight.py:957
Methodsparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
codes/main_empower.py:949
Methodsparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
codes/main.py:943
Methodssl_loss_calculation
(self, ssl_image_logit, ssl_text_logit, ssl_common_logit)
codes/main_mmlight.py:199
Methodssl_loss_calculation
(self, ssl_image_logit, ssl_text_logit, ssl_common_logit)
codes/main_empower.py:199
Methodssl_loss_calculation
(self, ssl_image_logit, ssl_text_logit, ssl_common_logit)
codes/main.py:199
MethodtestPred
(self, usr, trnMask)
codes/Models_mmlight.py:686
MethodtestPred
(self, usr, trnMask)
codes/Models_empower.py:566
MethodtestPred
(self, usr, trnMask)
codes/Models.py:566
Functiontest_one_user
(x)
LATTICE/codes/utility/batch_test.py:83
Functiontest_one_user
(x)
codes/utility/batch_test.py:85
Methodu_sim_calculation
(self, users, user_final, item_final)
codes/main_mmlight.py:290
Methodu_sim_calculation
(self, users, user_final, item_final)
codes/main_empower.py:290
Methodu_sim_calculation
(self, users, user_final, item_final)
codes/main.py:290
Methodweighted_sum
(self, anchor, nei, co)
codes/main_mmlight.py:169
Methodweighted_sum
(self, anchor, nei, co)
codes/main_empower.py:169
Methodweighted_sum
(self, anchor, nei, co)
codes/main.py:169
Methodweights_init
(self, m)
codes/main_mmlight.py:162
Methodweights_init
(self, m)
codes/main_empower.py:162
Methodweights_init
(self, m)
codes/main.py:162
← previous201–277 of 277, ranked by callers