MCPcopy Create free account

hub / github.com/LehengTHU/Agent4Rec / functions

Functions304 in github.com/LehengTHU/Agent4Rec

↓ 1 callersFunctionparse_args
()
recommenders/get_train_sh.py:3
↓ 1 callersMethodparse_init_property
(self, init_property)
simulation/avatar.py:37
↓ 1 callersMethodparse_init_statistic
Parse the init statistic of the avatar
simulation/avatar.py:42
↓ 1 callersMethodpause_to_reflect_satisfaction
Reflect on recent observations and generate 'insights'.
simulation/memory.py:232
↓ 1 callersFunctionpolish_data
(idx, prompt, sys_prompt, loop, executor, model="gpt-3.5-turbo", temperature=0)
datasets/ml-1m/4_generate_persona.py:320
↓ 1 callersFunctionprecision
(rank, ground_truth)
recommenders/evaluator/backend/python/metric.py:20
↓ 1 callersMethodprepare_dir
(self)
simulation/base/abstract_arena.py:72
↓ 1 callersMethodpreperation_for_saving
(self, args, special_args)
recommenders/models/base/abstract_RS.py:137
↓ 1 callersFunctionprior_graph
(n)
scripts/causal.py:170
↓ 1 callersMethodreaction_to_recommended_items
Summarize the feelings of the avatar for recommended item list.
simulation/avatar.py:237
↓ 1 callersMethodrecommend_top_k
(self)
recommenders/models/base/abstract_RS.py:206
↓ 1 callersMethodreflect
Generate a high level understanding of previous memories
simulation/memory.py:290
↓ 1 callersMethodreparameterize
(self, mu, logvar)
recommenders/models/MultVAE.py:122
↓ 1 callersMethodresponse_to_question
(self, question, remember=False)
simulation/avatar.py:179
↓ 1 callersMethodrestore_best_checkpoint
Restore the best performance checkpoint
recommenders/models/base/abstract_RS.py:366
↓ 1 callersFunctionrestore_checkpoint
If a checkpoint exists, restores the PyTorch model from the checkpoint. Returns the model and the current epoch.
recommenders/models/base/utils.py:57
↓ 1 callersMethodrestore_checkpoint
If a checkpoint exists, restores the PyTorch model from the checkpoint. Returns the model and the current epoch.
recommenders/models/base/abstract_RS.py:296
↓ 1 callersMethodsave_args
(self)
recommenders/models/base/abstract_RS.py:109
↓ 1 callersFunctionsave_checkpoint
(model, epoch, checkpoint_dir, buffer, max_to_keep=10)
recommenders/models/base/utils.py:41
↓ 1 callersMethodsave_results
save the results of the simulation
simulation/base/abstract_arena.py:236
↓ 1 callersFunctionsave_user_dict_to_txt
(user_dict, base_path, filename)
scripts/utils.py:44
↓ 1 callersMethodset_optimizer
(self)
recommenders/models/base/abstract_RS.py:170
↓ 1 callersFunctionsignificance_test
(group_data)
scripts/utils.py:287
↓ 1 callersMethodsimulate_all_avatars
excute the simulation for all avatars
simulation/base/abstract_arena.py:224
↓ 1 callersMethodsimulate_one_avatar
excute the simulation for one avatar avatar_id: the id of the simulated avatar
simulation/arena.py:380
↓ 1 callersMethodtrain_one_epoch
(self, epoch)
recommenders/models/base/abstract_RS.py:134
↓ 1 callersMethodvalidate_all_avatars
validate the users
simulation/base/abstract_arena.py:218
↓ 1 callersFunctionvisualize_and_save_log
(file_dir, dataset_name, show=False)
recommenders/models/base/utils.py:274
↓ 1 callersMethodwarning
(self, message)
recommenders/util/logger.py:60
FunctionItem_pop
(args, data, model)
recommenders/models/base/utils.py:181
MethodThreadPool
the constructor just launches some amount of workers
recommenders/util/cython/include/thread_pool.h:38
Method__contains__
(self, o)
recommenders/util/configurator.py:148
Method__getattr__
(self, item)
recommenders/util/configurator.py:145
Method__getitem__
(self, index)
recommenders/data.py:358
Method__getitem__
(self, idx)
recommenders/util/data_iterator.py:129
Method__getitem__
(self, item)
recommenders/util/configurator.py:117
Method__init__
(self, args)
recommenders/data.py:73
Method__init__
(self, modeltype, users, train_user_list, user_pop_idx, item_pop_idx, neg_sample, \ n_observat
recommenders/data.py:343
Method__init__
(self)
recommenders/evaluator/abstract_evaluator.py:10
Method__init__
Initializes a new `GroupedEvaluator` instance. Args: user_train_dict (dict): Each key is user ID and the corresponding
recommenders/evaluator/grouped_evaluator.py:24
Method__init__
Initializes a new `ProxyEvaluator` instance. Args: user_train_dict (dict): Each key is user ID and the corresponding
recommenders/evaluator/proxy_evaluator.py:41
Method__init__
Initializes a new `UniEvaluator` instance. Args: user_train_dict (dict): Each key is user ID and the corresponding
recommenders/evaluator/backend/python/uni_evaluator.py:33
Method__init__
Initializes a new `UniEvaluator` instance. Args: user_train_dict (dict): Each key is user ID and the corresponding
recommenders/evaluator/backend/cpp/uni_evaluator.py:39
Method__init__
(self, args, special_args)
recommenders/models/MF.py:12
Method__init__
(self, args, special_args)
recommenders/models/LightGCN.py:12
Method__init__
(self, args, special_args)
recommenders/models/Pop.py:15
Method__init__
(self, args)
recommenders/models/Pop.py:43
Method__init__
(self, args, special_args)
recommenders/models/Random.py:13
Method__init__
(self, args, special_args)
recommenders/models/MultVAE.py:25
Method__init__
(self, args)
recommenders/models/MultVAE.py:73
Method__init__
(self, args, special_args)
recommenders/models/InfoNCE.py:12
Method__init__
(self, args, data)
recommenders/models/InfoNCE.py:83
Method__init__
(self, args, special_args)
recommenders/models/base/abstract_RS.py:17
Method__init__
(self, args, data)
recommenders/models/base/abstract_model.py:16
Method__init__
Initializes a new `SequentialSampler` instance. Args: data_source (_Dataset): Dataset to sample from.
recommenders/util/data_iterator.py:29
Method__init__
Initializes a new `SequentialSampler` instance. Args: data_source (_Dataset): Dataset to sample from.
recommenders/util/data_iterator.py:49
Method__init__
Initializes a new `BatchSampler` instance. Args: sampler (Sampler): Base sampler. batch_size (int): Size of mini-batc
recommenders/util/data_iterator.py:70
Method__init__
(self, data)
recommenders/util/data_iterator.py:119
Method__init__
(self, loader)
recommenders/util/data_iterator.py:137
Method__init__
Args: *data: Variable length data list. batch_size (int): How many samples per batch to load. Defaults to `1`.
recommenders/util/data_iterator.py:178
Method__init__
Initializes a new `Logger` instance. Args: filename (str): File name to create. The directory component of this f
recommenders/util/logger.py:18
Method__init__
Initializes a new `Configurator` instance. Args: config_file (str): The path of ini-style configuration file. default
recommenders/util/configurator.py:44
Method__init__
(self, args)
simulation/arena.py:18
Method__init__
(self, args, avatar_id, init_property, init_statistic)
simulation/avatar.py:27
Method__init__
(self, args)
simulation/base/abstract_memory.py:2
Method__init__
(self, args)
simulation/base/abstract_arena.py:19
Method__init__
(self, args, avatar_id)
simulation/base/abstract_avatar.py:17
Method__iter__
(self)
recommenders/util/data_iterator.py:18
Method__iter__
(self)
recommenders/util/data_iterator.py:38
Method__iter__
(self)
recommenders/util/data_iterator.py:58
Method__iter__
(self)
recommenders/util/data_iterator.py:95
Method__iter__
(self)
recommenders/util/data_iterator.py:154
Method__iter__
(self)
recommenders/util/data_iterator.py:206
Method__len__
(self)
recommenders/data.py:392
Method__len__
(self)
recommenders/util/data_iterator.py:21
Method__len__
(self)
recommenders/util/data_iterator.py:41
Method__len__
(self)
recommenders/util/data_iterator.py:62
Method__len__
(self)
recommenders/util/data_iterator.py:105
Method__len__
(self)
recommenders/util/data_iterator.py:126
Method__len__
(self)
recommenders/util/data_iterator.py:142
Method__len__
(self)
recommenders/util/data_iterator.py:209
Method__next__
(self)
recommenders/util/data_iterator.py:145
Method__repr__
(self)
recommenders/util/configurator.py:157
Method_eval_one_user
(idx)
recommenders/evaluator/backend/python/uni_evaluator.py:156
Method_get_combined_score
Return the combined score for a document.
simulation/retriever.py:47
Method_get_memories_until_limit
Reduce the number of tokens in the documents.
simulation/memory.py:97
Function_get_pairwise_all_likefism_data
(dataset)
recommenders/util/data_generator.py:5
Function_get_pairwise_all_likefossil_data
(dataset, high_order, train_dict)
recommenders/util/data_generator.py:54
Function_get_pointwise_all_likefism_data
(dataset, num_negatives, train_dict)
recommenders/util/data_generator.py:29
Function_get_pointwise_all_likefossil_data
(dataset, high_order, num_negatives, train_dict)
recommenders/util/data_generator.py:80
Method_parse_list
Parse a newline-separated string into a list of strings.
simulation/memory.py:70
Method_reaction
Summarize the feelings of the avatar for recommended item list.
simulation/base/abstract_avatar.py:24
Methodaadd_documents
Add documents to vectorstore.
simulation/retriever.py:167
Functionactivity
(x)
datasets/ml-1m/2_get_user_statistic.py:36
Methodadd_memory
Add one new memory to the memory bank
simulation/base/abstract_memory.py:7
Methodadd_special_model_attr
(self, args)
recommenders/models/Pop.py:46
Methodadd_special_model_attr
(self, args)
recommenders/models/MultVAE.py:76
Methodaget_relevant_documents
Return documents that are relevant to the query.
simulation/retriever.py:147
Functionagg_func
(x)
datasets/ml-1m/1_get_cf_data.py:180
Functionalign_loss
(x, y, alpha=2)
recommenders/models/base/utils.py:268
← previousnext →101–200 of 304, ranked by callers