Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/PromptMM
/ functions
Functions
277 in github.com/HKUDS/PromptMM
⨍
Functions
277
◇
Types & classes
30
Method
get_embedding
(self)
codes/Models.py:528
Function
get_sparse_laplacian
(edge_index, edge_weight, num_nodes, normalization='none')
codes/utility/norm.py:55
Function
hit_at_k
(r, k)
LATTICE/codes/utility/metrics.py:82
Function
hit_at_k
(r, k)
codes/utility/metrics.py:82
Method
init_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_mmlight.py:370
Method
init_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_mmlight.py:448
Method
init_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_mmlight.py:660
Method
init_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_empower.py:328
Method
init_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models_empower.py:540
Method
init_user_item_embed
(self, pre_u_embed, pre_i_embed)
codes/Models.py:328
Method
innerProduct
(self, u_pos, i_pos, u_neg, j_neg)
codes/main_mmlight.py:141
Method
innerProduct
(self, u_pos, i_pos, u_neg, j_neg)
codes/main_empower.py:141
Method
innerProduct
(self, u_pos, i_pos, u_neg, j_neg)
codes/main.py:141
Method
l2_loss
(self)
codes/Models_mmlight.py:519
Method
l2_loss
(self)
codes/Models_empower.py:399
Method
l2_loss
(self)
codes/Models.py:399
Method
matrix_to_tensor
(self, cur_matrix)
codes/Models_mmlight.py:108
Method
matrix_to_tensor
(self, cur_matrix)
codes/Models_empower.py:108
Method
matrix_to_tensor
(self, cur_matrix)
codes/Models.py:108
Function
mean_average_precision
Score is mean average precision Relevance is binary (nonzero is relevant). Returns: Mean average precision
LATTICE/codes/utility/metrics.py:34
Function
mean_average_precision
Score is mean average precision Relevance is binary (nonzero is relevant). Returns: Mean average precision
codes/utility/metrics.py:34
Method
mm
(self, x, y)
codes/Models_mmlight.py:359
Method
multi_head_self_attention
(self, trans_w, embedding_t_1, embedding_t)
codes/Models_mmlight.py:131
Method
multi_head_self_attention
(self, trans_w, embedding_t_1, embedding_t)
codes/Models_empower.py:131
Method
multi_head_self_attention
(self, trans_w, embedding_t_1, embedding_t)
codes/Models.py:131
Function
ndcg_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
Function
ndcg_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
Method
normalized_adj_single
(adj)
LATTICE/codes/utility/load_data.py:127
Method
normalized_adj_single
(adj)
codes/utility/load_data.py:120
Method
pairPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss, negs)
codes/Models_mmlight.py:675
Method
pairPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss, negs)
codes/Models_empower.py:555
Method
pointNegPredictwEmbeds
(self, embeds1, embeds2, nodes1, temp=1.0)
codes/Models_mmlight.py:670
Method
pointNegPredictwEmbeds
(self, embeds1, embeds2, nodes1, temp=1.0)
codes/Models_empower.py:550
Method
pointNegPredictwEmbeds
(self, embeds1, embeds2, nodes1, temp=1.0)
codes/Models.py:550
Method
pointPosPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss)
codes/Models_mmlight.py:664
Method
pointPosPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss)
codes/Models_empower.py:544
Method
pointPosPredictwEmbeds
(self, uEmbeds, iEmbeds, ancs, poss)
codes/Models.py:544
Function
recall
(rank, ground_truth, N)
LATTICE/codes/utility/metrics.py:4
Function
recall
(rank, ground_truth, N)
codes/utility/metrics.py:4
Function
recall_at_k
(r, k, all_pos_num)
LATTICE/codes/utility/metrics.py:74
Function
recall_at_k
(r, k, all_pos_num)
codes/utility/metrics.py:74
Method
reward_loss_calculation
(self, users, re_u, re_i, topk_id, topk_p)
codes/main_mmlight.py:277
Method
reward_loss_calculation
(self, users, re_u, re_i, topk_id, topk_p)
codes/main_empower.py:277
Method
reward_loss_calculation
(self, users, re_u, re_i, topk_id, topk_p)
codes/main.py:277
Method
sample_neg_items_for_u
(u, num)
LATTICE/codes/utility/load_data.py:182
Method
sample_neg_items_for_u
(u, num)
codes/utility/load_data.py:175
Method
sample_neg_items_for_u_from_pools
(u, num)
LATTICE/codes/utility/load_data.py:191
Method
sample_neg_items_for_u_from_pools
(u, num)
codes/utility/load_data.py:184
Method
sample_pos_items_for_u
(u, num)
LATTICE/codes/utility/load_data.py:169
Method
sample_pos_items_for_u
(u, num)
codes/utility/load_data.py:162
Method
sample_topk
(self, u_sim, users, emb_type=None)
codes/main_mmlight.py:185
Method
sample_topk
(self, u_sim, users, emb_type=None)
codes/main_empower.py:185
Method
sample_topk
(self, u_sim, users, emb_type=None)
codes/main.py:185
Method
sim
(self, z1, z2)
codes/Models_mmlight.py:364
Function
sparse_dropout
:param x: :param rate: :param noise_shape: int scalar :return:
codes/Models_mmlight.py:578
Function
sparse_dropout
:param x: :param rate: :param noise_shape: int scalar :return:
codes/Models_empower.py:458
Function
sparse_dropout
:param x: :param rate: :param noise_shape: int scalar :return:
codes/Models.py:458
Method
sparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
codes/main_mmlight.py:957
Method
sparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
codes/main_empower.py:949
Method
sparse_mx_to_torch_sparse_tensor
Convert a scipy sparse matrix to a torch sparse tensor.
codes/main.py:943
Method
ssl_loss_calculation
(self, ssl_image_logit, ssl_text_logit, ssl_common_logit)
codes/main_mmlight.py:199
Method
ssl_loss_calculation
(self, ssl_image_logit, ssl_text_logit, ssl_common_logit)
codes/main_empower.py:199
Method
ssl_loss_calculation
(self, ssl_image_logit, ssl_text_logit, ssl_common_logit)
codes/main.py:199
Method
testPred
(self, usr, trnMask)
codes/Models_mmlight.py:686
Method
testPred
(self, usr, trnMask)
codes/Models_empower.py:566
Method
testPred
(self, usr, trnMask)
codes/Models.py:566
Function
test_one_user
(x)
LATTICE/codes/utility/batch_test.py:83
Function
test_one_user
(x)
codes/utility/batch_test.py:85
Method
u_sim_calculation
(self, users, user_final, item_final)
codes/main_mmlight.py:290
Method
u_sim_calculation
(self, users, user_final, item_final)
codes/main_empower.py:290
Method
u_sim_calculation
(self, users, user_final, item_final)
codes/main.py:290
Method
weighted_sum
(self, anchor, nei, co)
codes/main_mmlight.py:169
Method
weighted_sum
(self, anchor, nei, co)
codes/main_empower.py:169
Method
weighted_sum
(self, anchor, nei, co)
codes/main.py:169
Method
weights_init
(self, m)
codes/main_mmlight.py:162
Method
weights_init
(self, m)
codes/main_empower.py:162
Method
weights_init
(self, m)
codes/main.py:162
← previous
201–277 of 277, ranked by callers