Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HonghuiBao2000/LETTER
/ functions
Functions
205 in github.com/HonghuiBao2000/LETTER
⨍
Functions
205
◇
Types & classes
22
↓ 143 callers
Method
append
(self, trie, bos_token_id)
LETTER-TIGER/generation_trie.py:19
↓ 12 callers
Function
set_color
(log, color, highlight=True)
RQ-VAE/utils.py:10
↓ 10 callers
Method
get
(self, prefix_sequence: List[int])
LETTER-TIGER/generation_trie.py:27
↓ 7 callers
Method
add
(self, sequence: List[int])
LETTER-TIGER/generation_trie.py:23
↓ 6 callers
Method
__init__
(self, args)
LETTER-LC-Rec/data.py:21
↓ 5 callers
Method
fit
(self, data)
RQ-VAE/trainer.py:228
↓ 3 callers
Method
_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:239
↓ 3 callers
Method
_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:444
↓ 3 callers
Method
get_indices
(self, xs, labels, use_sk=False)
RQ-VAE/models/rqvae.py:86
↓ 2 callers
Method
_add_to_trie
(sequence: List[int], trie_dict: Dict)
LETTER-TIGER/generation_trie.py:40
↓ 2 callers
Method
_save_checkpoint
(self, epoch, collision_rate=1, ckpt_file=None)
RQ-VAE/trainer.py:196
↓ 2 callers
Method
center_distance_for_constraint
(distances)
RQ-VAE/models/vq.py:111
↓ 2 callers
Method
constrained_km
(self, data, n_clusters=10)
RQ-VAE/trainer.py:87
↓ 2 callers
Method
get_new_tokens
(self)
LETTER-TIGER/data.py:43
↓ 2 callers
Method
init_emb
(self, data)
RQ-VAE/models/vq.py:43
↓ 2 callers
Function
load_datasets
(args)
LETTER-TIGER/utils.py:128
↓ 2 callers
Function
load_test_dataset
(args)
LETTER-LC-Rec/utils.py:178
↓ 2 callers
Function
parse_dataset_args
(parser)
LETTER-LC-Rec/utils.py:28
↓ 2 callers
Function
parse_dataset_args
(parser)
LETTER-TIGER/utils.py:22
↓ 2 callers
Function
parse_global_args
(parser)
LETTER-LC-Rec/utils.py:13
↓ 2 callers
Function
parse_global_args
(parser)
LETTER-TIGER/utils.py:12
↓ 2 callers
Function
set_seed
(seed)
LETTER-LC-Rec/utils.py:128
↓ 2 callers
Function
set_seed
(seed)
LETTER-TIGER/utils.py:114
↓ 2 callers
Function
sinkhorn_algorithm
(distances, epsilon, sinkhorn_iterations)
RQ-VAE/models/layers.py:84
↓ 1 callers
Method
CF_loss
(self, quantized_rep, encoded_rep)
RQ-VAE/models/rqvae.py:75
↓ 1 callers
Method
__init__
(self, args)
LETTER-TIGER/data.py:21
↓ 1 callers
Method
_build_optimizer
(self)
RQ-VAE/trainer.py:46
↓ 1 callers
Method
_check_nan
(self, loss)
RQ-VAE/trainer.py:83
↓ 1 callers
Method
_construct_valid_text
(self)
LETTER-LC-Rec/data.py:220
↓ 1 callers
Method
_construct_valid_text
(self)
LETTER-LC-Rec/data.py:425
↓ 1 callers
Method
_generate_train_loss_output
(self, epoch_idx, s_time, e_time, loss, recon_loss, cf_loss)
RQ-VAE/trainer.py:214
↓ 1 callers
Method
_get_from_trie
( prefix_sequence: List[int], trie_dict: Dict, append_trie=None, bos_token_id:
LETTER-TIGER/generation_trie.py:47
↓ 1 callers
Method
_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:525
↓ 1 callers
Method
_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:632
↓ 1 callers
Method
_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:737
↓ 1 callers
Method
_get_text_data
(self, data, prompt)
LETTER-LC-Rec/data.py:830
↓ 1 callers
Method
_load_data
(self)
LETTER-LC-Rec/data.py:130
↓ 1 callers
Method
_load_data
(self)
LETTER-LC-Rec/data.py:306
↓ 1 callers
Method
_load_data
(self)
LETTER-LC-Rec/data.py:495
↓ 1 callers
Method
_load_data
(self)
LETTER-LC-Rec/data.py:568
↓ 1 callers
Method
_load_data
(self)
LETTER-LC-Rec/data.py:685
↓ 1 callers
Method
_load_data
(self)
LETTER-LC-Rec/data.py:782
↓ 1 callers
Method
_load_data
(self)
LETTER-TIGER/data.py:136
↓ 1 callers
Method
_process_data
(self)
LETTER-LC-Rec/data.py:503
↓ 1 callers
Method
_process_data
(self)
LETTER-LC-Rec/data.py:576
↓ 1 callers
Method
_process_data
(self)
LETTER-LC-Rec/data.py:702
↓ 1 callers
Method
_process_test_data
(self)
LETTER-LC-Rec/data.py:183
↓ 1 callers
Method
_process_test_data
(self)
LETTER-LC-Rec/data.py:380
↓ 1 callers
Method
_process_test_data
(self)
LETTER-LC-Rec/data.py:797
↓ 1 callers
Method
_process_test_data
(self)
LETTER-TIGER/data.py:188
↓ 1 callers
Method
_process_test_data_ids
(self)
LETTER-TIGER/data.py:213
↓ 1 callers
Method
_process_train_data
(self)
LETTER-LC-Rec/data.py:146
↓ 1 callers
Method
_process_train_data
(self)
LETTER-LC-Rec/data.py:315
↓ 1 callers
Method
_process_train_data
(self)
LETTER-TIGER/data.py:151
↓ 1 callers
Method
_process_valid_data
(self)
LETTER-LC-Rec/data.py:165
↓ 1 callers
Method
_process_valid_data
(self)
LETTER-LC-Rec/data.py:348
↓ 1 callers
Method
_process_valid_data
(self)
LETTER-TIGER/data.py:170
↓ 1 callers
Method
_remap_items
(self)
LETTER-LC-Rec/data.py:138
↓ 1 callers
Method
_remap_items
(self)
LETTER-LC-Rec/data.py:695
↓ 1 callers
Method
_remap_items
(self)
LETTER-LC-Rec/data.py:790
↓ 1 callers
Method
_remap_items
(self)
LETTER-TIGER/data.py:143
↓ 1 callers
Method
_train_epoch
(self, train_data, epoch_idx)
RQ-VAE/trainer.py:121
↓ 1 callers
Method
_valid_epoch
(self, valid_data)
RQ-VAE/trainer.py:161
↓ 1 callers
Function
activation_layer
(activation_name="relu", emb_dim=None)
RQ-VAE/models/layers.py:43
↓ 1 callers
Function
check_collision
(all_indices_str)
RQ-VAE/generate_indices.py:18
↓ 1 callers
Function
clean_text
(raw_text)
data_process/utils.py:96
↓ 1 callers
Method
compute_loss
(self, out, quant_loss, emb_idx, dense_out, xs=None)
RQ-VAE/models/rqvae.py:91
↓ 1 callers
Function
constrained_km
(data, n_clusters=10)
RQ-VAE/generate_indices.py:100
↓ 1 callers
Method
constrained_km
(self, data, n_clusters=10)
RQ-VAE/models/vq.py:54
↓ 1 callers
Method
diversity_loss
(self, x_q, indices, indices_cluster, indices_list)
RQ-VAE/models/vq.py:69
↓ 1 callers
Method
diversity_loss_main_entry
(self, x, x_q, indices, labels)
RQ-VAE/models/vq.py:97
↓ 1 callers
Function
ensure_dir
(dir_path)
LETTER-LC-Rec/utils.py:137
↓ 1 callers
Function
ensure_dir
(dir_path)
RQ-VAE/utils.py:6
↓ 1 callers
Function
ensure_dir
(dir_path)
LETTER-TIGER/utils.py:123
↓ 1 callers
Function
generate_item_embedding
(args, item_text_list, tokenizer, model, word_drop_ratio=-1)
data_process/amazon_text_emb.py:49
↓ 1 callers
Function
generate_text
(item2feature, features)
data_process/amazon_text_emb.py:23
↓ 1 callers
Method
get_all_items
(self)
LETTER-LC-Rec/data.py:56
↓ 1 callers
Method
get_all_items
(self)
LETTER-TIGER/data.py:56
↓ 1 callers
Function
get_collision_item
(all_indices_str)
RQ-VAE/generate_indices.py:29
↓ 1 callers
Function
get_indices_count
(all_indices_str)
RQ-VAE/generate_indices.py:23
↓ 1 callers
Function
get_local_time
r"""Get current time Returns: str: current time
RQ-VAE/utils.py:24
↓ 1 callers
Function
get_metrics_results
(topk_results, metrics)
LETTER-LC-Rec/evaluate.py:32
↓ 1 callers
Function
get_metrics_results
(topk_results, metrics)
LETTER-TIGER/evaluate.py:50
↓ 1 callers
Method
get_new_tokens
(self)
LETTER-LC-Rec/data.py:43
↓ 1 callers
Method
get_prefix_allowed_tokens_fn
(self, tokenizer)
LETTER-LC-Rec/data.py:67
↓ 1 callers
Function
get_topk_results
(predictions, scores, targets, k, all_items=None)
LETTER-LC-Rec/evaluate.py:3
↓ 1 callers
Function
get_topk_results
(predictions, scores, targets, k, all_items=None)
LETTER-TIGER/evaluate.py:3
↓ 1 callers
Function
hit_k
(topk_results, k)
LETTER-LC-Rec/evaluate.py:59
↓ 1 callers
Function
hit_k
(topk_results, k)
LETTER-TIGER/evaluate.py:79
↓ 1 callers
Function
load_data
(args)
data_process/amazon_text_emb.py:16
↓ 1 callers
Function
load_datasets
(args)
LETTER-LC-Rec/utils.py:142
↓ 1 callers
Function
load_json
(file)
data_process/utils.py:91
↓ 1 callers
Function
load_plm
(model_path='bert-base-uncased')
data_process/utils.py:82
↓ 1 callers
Function
load_test_dataset
(args)
LETTER-TIGER/utils.py:151
↓ 1 callers
Function
ndcg_k
(topk_results, k)
LETTER-LC-Rec/evaluate.py:47
↓ 1 callers
Function
ndcg_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 callers
Function
parse_args
()
RQ-VAE/main.py:16
↓ 1 callers
Function
parse_args
()
RQ-VAE/generate_indices.py:44
↓ 1 callers
Function
parse_args
()
data_process/amazon_text_emb.py:108
↓ 1 callers
Function
parse_test_args
(parser)
LETTER-LC-Rec/utils.py:92
next →
1–100 of 205, ranked by callers