MCPcopy Create free account

hub / github.com/HonghuiBao2000/LETTER / functions

Functions205 in github.com/HonghuiBao2000/LETTER

↓ 143 callersMethodappend
(self, trie, bos_token_id)
LETTER-TIGER/generation_trie.py:19
↓ 12 callersFunctionset_color
(log, color, highlight=True)
RQ-VAE/utils.py:10
↓ 10 callersMethodget
(self, prefix_sequence: List[int])
LETTER-TIGER/generation_trie.py:27
↓ 7 callersMethodadd
(self, sequence: List[int])
LETTER-TIGER/generation_trie.py:23
↓ 6 callersMethod__init__
(self, args)
LETTER-LC-Rec/data.py:21
↓ 5 callersMethodfit
(self, data)
RQ-VAE/trainer.py:228
↓ 3 callersMethod_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:239
↓ 3 callersMethod_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:444
↓ 3 callersMethodget_indices
(self, xs, labels, use_sk=False)
RQ-VAE/models/rqvae.py:86
↓ 2 callersMethod_add_to_trie
(sequence: List[int], trie_dict: Dict)
LETTER-TIGER/generation_trie.py:40
↓ 2 callersMethod_save_checkpoint
(self, epoch, collision_rate=1, ckpt_file=None)
RQ-VAE/trainer.py:196
↓ 2 callersMethodcenter_distance_for_constraint
(distances)
RQ-VAE/models/vq.py:111
↓ 2 callersMethodconstrained_km
(self, data, n_clusters=10)
RQ-VAE/trainer.py:87
↓ 2 callersMethodget_new_tokens
(self)
LETTER-TIGER/data.py:43
↓ 2 callersMethodinit_emb
(self, data)
RQ-VAE/models/vq.py:43
↓ 2 callersFunctionload_datasets
(args)
LETTER-TIGER/utils.py:128
↓ 2 callersFunctionload_test_dataset
(args)
LETTER-LC-Rec/utils.py:178
↓ 2 callersFunctionparse_dataset_args
(parser)
LETTER-LC-Rec/utils.py:28
↓ 2 callersFunctionparse_dataset_args
(parser)
LETTER-TIGER/utils.py:22
↓ 2 callersFunctionparse_global_args
(parser)
LETTER-LC-Rec/utils.py:13
↓ 2 callersFunctionparse_global_args
(parser)
LETTER-TIGER/utils.py:12
↓ 2 callersFunctionset_seed
(seed)
LETTER-LC-Rec/utils.py:128
↓ 2 callersFunctionset_seed
(seed)
LETTER-TIGER/utils.py:114
↓ 2 callersFunctionsinkhorn_algorithm
(distances, epsilon, sinkhorn_iterations)
RQ-VAE/models/layers.py:84
↓ 1 callersMethodCF_loss
(self, quantized_rep, encoded_rep)
RQ-VAE/models/rqvae.py:75
↓ 1 callersMethod__init__
(self, args)
LETTER-TIGER/data.py:21
↓ 1 callersMethod_build_optimizer
(self)
RQ-VAE/trainer.py:46
↓ 1 callersMethod_check_nan
(self, loss)
RQ-VAE/trainer.py:83
↓ 1 callersMethod_construct_valid_text
(self)
LETTER-LC-Rec/data.py:220
↓ 1 callersMethod_construct_valid_text
(self)
LETTER-LC-Rec/data.py:425
↓ 1 callersMethod_generate_train_loss_output
(self, epoch_idx, s_time, e_time, loss, recon_loss, cf_loss)
RQ-VAE/trainer.py:214
↓ 1 callersMethod_get_from_trie
( prefix_sequence: List[int], trie_dict: Dict, append_trie=None, bos_token_id:
LETTER-TIGER/generation_trie.py:47
↓ 1 callersMethod_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:525
↓ 1 callersMethod_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:632
↓ 1 callersMethod_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:737
↓ 1 callersMethod_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:830
↓ 1 callersMethod_load_data
(self)
LETTER-LC-Rec/data.py:130
↓ 1 callersMethod_load_data
(self)
LETTER-LC-Rec/data.py:306
↓ 1 callersMethod_load_data
(self)
LETTER-LC-Rec/data.py:495
↓ 1 callersMethod_load_data
(self)
LETTER-LC-Rec/data.py:568
↓ 1 callersMethod_load_data
(self)
LETTER-LC-Rec/data.py:685
↓ 1 callersMethod_load_data
(self)
LETTER-LC-Rec/data.py:782
↓ 1 callersMethod_load_data
(self)
LETTER-TIGER/data.py:136
↓ 1 callersMethod_process_data
(self)
LETTER-LC-Rec/data.py:503
↓ 1 callersMethod_process_data
(self)
LETTER-LC-Rec/data.py:576
↓ 1 callersMethod_process_data
(self)
LETTER-LC-Rec/data.py:702
↓ 1 callersMethod_process_test_data
(self)
LETTER-LC-Rec/data.py:183
↓ 1 callersMethod_process_test_data
(self)
LETTER-LC-Rec/data.py:380
↓ 1 callersMethod_process_test_data
(self)
LETTER-LC-Rec/data.py:797
↓ 1 callersMethod_process_test_data
(self)
LETTER-TIGER/data.py:188
↓ 1 callersMethod_process_test_data_ids
(self)
LETTER-TIGER/data.py:213
↓ 1 callersMethod_process_train_data
(self)
LETTER-LC-Rec/data.py:146
↓ 1 callersMethod_process_train_data
(self)
LETTER-LC-Rec/data.py:315
↓ 1 callersMethod_process_train_data
(self)
LETTER-TIGER/data.py:151
↓ 1 callersMethod_process_valid_data
(self)
LETTER-LC-Rec/data.py:165
↓ 1 callersMethod_process_valid_data
(self)
LETTER-LC-Rec/data.py:348
↓ 1 callersMethod_process_valid_data
(self)
LETTER-TIGER/data.py:170
↓ 1 callersMethod_remap_items
(self)
LETTER-LC-Rec/data.py:138
↓ 1 callersMethod_remap_items
(self)
LETTER-LC-Rec/data.py:695
↓ 1 callersMethod_remap_items
(self)
LETTER-LC-Rec/data.py:790
↓ 1 callersMethod_remap_items
(self)
LETTER-TIGER/data.py:143
↓ 1 callersMethod_train_epoch
(self, train_data, epoch_idx)
RQ-VAE/trainer.py:121
↓ 1 callersMethod_valid_epoch
(self, valid_data)
RQ-VAE/trainer.py:161
↓ 1 callersFunctionactivation_layer
(activation_name="relu", emb_dim=None)
RQ-VAE/models/layers.py:43
↓ 1 callersFunctioncheck_collision
(all_indices_str)
RQ-VAE/generate_indices.py:18
↓ 1 callersFunctionclean_text
(raw_text)
data_process/utils.py:96
↓ 1 callersMethodcompute_loss
(self, out, quant_loss, emb_idx, dense_out, xs=None)
RQ-VAE/models/rqvae.py:91
↓ 1 callersFunctionconstrained_km
(data, n_clusters=10)
RQ-VAE/generate_indices.py:100
↓ 1 callersMethodconstrained_km
(self, data, n_clusters=10)
RQ-VAE/models/vq.py:54
↓ 1 callersMethoddiversity_loss
(self, x_q, indices, indices_cluster, indices_list)
RQ-VAE/models/vq.py:69
↓ 1 callersMethoddiversity_loss_main_entry
(self, x, x_q, indices, labels)
RQ-VAE/models/vq.py:97
↓ 1 callersFunctionensure_dir
(dir_path)
LETTER-LC-Rec/utils.py:137
↓ 1 callersFunctionensure_dir
(dir_path)
RQ-VAE/utils.py:6
↓ 1 callersFunctionensure_dir
(dir_path)
LETTER-TIGER/utils.py:123
↓ 1 callersFunctiongenerate_item_embedding
(args, item_text_list, tokenizer, model, word_drop_ratio=-1)
data_process/amazon_text_emb.py:49
↓ 1 callersFunctiongenerate_text
(item2feature, features)
data_process/amazon_text_emb.py:23
↓ 1 callersMethodget_all_items
(self)
LETTER-LC-Rec/data.py:56
↓ 1 callersMethodget_all_items
(self)
LETTER-TIGER/data.py:56
↓ 1 callersFunctionget_collision_item
(all_indices_str)
RQ-VAE/generate_indices.py:29
↓ 1 callersFunctionget_indices_count
(all_indices_str)
RQ-VAE/generate_indices.py:23
↓ 1 callersFunctionget_local_time
r"""Get current time Returns: str: current time
RQ-VAE/utils.py:24
↓ 1 callersFunctionget_metrics_results
(topk_results, metrics)
LETTER-LC-Rec/evaluate.py:32
↓ 1 callersFunctionget_metrics_results
(topk_results, metrics)
LETTER-TIGER/evaluate.py:50
↓ 1 callersMethodget_new_tokens
(self)
LETTER-LC-Rec/data.py:43
↓ 1 callersMethodget_prefix_allowed_tokens_fn
(self, tokenizer)
LETTER-LC-Rec/data.py:67
↓ 1 callersFunctionget_topk_results
(predictions, scores, targets, k, all_items=None)
LETTER-LC-Rec/evaluate.py:3
↓ 1 callersFunctionget_topk_results
(predictions, scores, targets, k, all_items=None)
LETTER-TIGER/evaluate.py:3
↓ 1 callersFunctionhit_k
(topk_results, k)
LETTER-LC-Rec/evaluate.py:59
↓ 1 callersFunctionhit_k
(topk_results, k)
LETTER-TIGER/evaluate.py:79
↓ 1 callersFunctionload_data
(args)
data_process/amazon_text_emb.py:16
↓ 1 callersFunctionload_datasets
(args)
LETTER-LC-Rec/utils.py:142
↓ 1 callersFunctionload_json
(file)
data_process/utils.py:91
↓ 1 callersFunctionload_plm
(model_path='bert-base-uncased')
data_process/utils.py:82
↓ 1 callersFunctionload_test_dataset
(args)
LETTER-TIGER/utils.py:151
↓ 1 callersFunctionndcg_k
(topk_results, k)
LETTER-LC-Rec/evaluate.py:47
↓ 1 callersFunctionndcg_k
Since we apply leave-one-out, each user only have one ground truth item, so the idcg would be 1.0
LETTER-TIGER/evaluate.py:65
↓ 1 callersFunctionparse_args
()
RQ-VAE/main.py:16
↓ 1 callersFunctionparse_args
()
RQ-VAE/generate_indices.py:44
↓ 1 callersFunctionparse_args
()
data_process/amazon_text_emb.py:108
↓ 1 callersFunctionparse_test_args
(parser)
LETTER-LC-Rec/utils.py:92
next →1–100 of 205, ranked by callers