MCPcopy Create free account

hub / github.com/AkaliKong/MiniOneRec / functions

Functions426 in github.com/AkaliKong/MiniOneRec

Methodforward
(self, states, len_states)
sasrec.py:105
Methodforward
(self, states, len_states)
sasrec.py:241
Methodforward
(self, x)
rq/generate_indices_plus.py:20
Methodforward
(self, x)
rq/rqkmeans_plus.py:21
Methodforward
(self, x, use_sk=True)
rq/models/vq.py:63
Methodforward
(self, x, use_sk=True)
rq/models/rq.py:39
Methodforward
(self, input_feature)
rq/models/layers.py:42
Methodforward
(self, x, use_sk=True)
rq/models/rqvae.py:61
Methodforward_eval
(self, states, len_states)
sasrec.py:190
Methodforward_eval
(self, states, len_states)
sasrec.py:259
Functiongao
(path, item_path)
calc.py:12
Functiongao
(category, metadata=None, reviews=None, K=5, st_year=2017, st_month=10, ed_year=2018, ed_month=11, output=True
data/process.py:16
Methodgenerate_example_prompt
(self, data_point)
data.py:128
Methodgenerate_example_prompt
(self, data_point)
data.py:282
Methodgenerate_example_prompt
(self, data_point)
data.py:604
Methodgenerate_prompt_description
(self, history)
ts_rec_data.py:538
Methodgenerate_prompt_description
(self, history)
data.py:1232
Methodget_all
(self)
ts_rec_data.py:133
Methodget_codebook
(self)
rq/models/vq.py:29
Methodget_codebook
(self)
rq/models/rq.py:32
Methodget_codebook_entry
(self, indices, shape=None)
rq/models/vq.py:32
Functionget_cosine_schedule_with_warmup
( optimizer, num_warmup_steps, num_training_steps, num_cycles: float = 0.5, last_epoch: int = -1 )
sft.py:76
Functionget_cosine_schedule_with_warmup
( optimizer, num_warmup_steps, num_training_steps, num_cycles: float = 0.5, last_epoch: int = -1 )
ts_rec_sft.py:71
Functionget_cosine_schedule_with_warmup
( optimizer, num_warmup_steps, num_training_steps, num_cycles: float = 0.5, last_epoch: int = -1 )
sft_gpr.py:76
Methodget_history
(self, row)
data.py:494
Methodget_inputs_list
(self)
ts_rec_data.py:139
Methodget_inputs_list
(self)
ts_rec_data.py:273
Methodget_inputs_list
(self)
ts_rec_data.py:413
Methodget_inputs_list
(self)
ts_rec_data.py:645
Methodget_inputs_list
(self)
data.py:68
Functionget_res_batch
(model_name, prompt_list, max_tokens, api_info)
rq/text2emb/utils.py:22
Functionhepo_reward
(prompts, completions)
rl_gpr.py:94
Methodinit_weights
(self, module)
rq/models/layers.py:35
Functionload_pickle
(filename)
rq/text2emb/utils.py:331
Functionload_plm
(model_path='bert-base-uncased')
rq/text2emb/utils.py:288
Functionmain
( base_model: str = "", train_file: str = "", info_file: str = "", category: str = "", tes
evaluate.py:38
Functionmake_inters_in_order
(inters)
rq/text2emb/utils.py:336
Functionmask_grad
(grad)
sft.py:172
Functionmask_grad
(grad)
ts_rec_sft.py:201
Functionmask_grad
(grad)
sft_gpr.py:226
Functionmerge
(input_path, output_path, cuda_list)
merge.py:6
Functionndcg_rule_reward
(prompts, completions)
rl_gpr.py:199
Functionndcg_rule_reward
(prompts, completions)
rl.py:160
Functionnormalize
Applies layer normalization. Args: inputs: A tensor with 2 or more dimensions, where the first dimension has `batch_size`. ep
utility.py:46
Functionpad_history
(itemlist,length,pad_item)
utility.py:22
Methodpre
(self, idx)
data.py:154
Methodpre
(self, idx)
data.py:242
Methodpre
(self, idx)
data.py:305
Methodpre
(self, idx)
data.py:381
Methodpre
(self, idx)
data.py:421
Methodpre
(self, idx)
data.py:512
Methodpre
(self, idx)
data.py:629
Methodpre
(self, idx)
data.py:746
Methodpre
(self, idx)
data.py:875
Methodpre
(self, idx)
data.py:946
Methodpre
(self, idx)
data.py:1024
Methodpre
(self, idx)
data.py:1105
Methodpre
(self, idx)
data.py:1277
Methodpre
(self, idx)
data.py:1404
Methodpre
(self, idx)
data.py:1584
Methodpre
(self, idx)
data.py:1765
Methodprediction_step
(self, model, inputs, prediction_loss_only, ignore_keys: Optional[list[str]] = None)
minionerec_trainer.py:1075
Methodprefix_allowed_tokens_fn
(self, batch_id, input_ids)
minionerec_trainer.py:588
Functionprefix_allowed_tokens_fn_semantic
(batch_id, input_ids)
evaluate.py:122
Functionprefix_allowed_tokens_fn_title
(batch_id, input_ids)
evaluate.py:128
Methodreg_loss
(self, reg_weights=1e-2)
utility.py:176
Functionrule_reward
(prompts, completions)
rl_gpr.py:225
Functionrule_reward
(prompts, completions)
rl.py:186
Methodselect_completion
(completions, target)
minionerec_trainer.py:820
Functionsemantic_reward
(prompts, completions)
rl_gpr.py:238
Functionsemantic_reward
(prompts, completions)
rl.py:199
MethodsetUp
(self)
tests/test_minimax_provider.py:341
MethodsetUpClass
(cls)
data_test.py:37
Functionset_device
(gpu_id)
rq/text2emb/utils.py:281
Functionsplit
(input_path, output_path, cuda_list)
split.py:5
MethodtearDownClass
(cls)
data_test.py:102
Methodtest_D3Dataset_initialization
Test D3Dataset initialization
data_test.py:119
Methodtest_EvalD3Dataset_initialization
Test EvalD3Dataset initialization
data_test.py:131
Methodtest_EvalSidDataset_initialization
Test SidItemFeatDataset initialization
data_test.py:195
Methodtest_FusionSeqRecDataset_initialization
Test FusionSeqRecDataset initialization
data_test.py:243
Methodtest_PreferenceSFTDataset_initialization
Test PreferenceSFTDataset initialization
data_test.py:271
Methodtest_RLSid2TitleDataset_initialization
Test RLSid2TitleDataset initialization
data_test.py:220
Methodtest_RLSidhis2TitleDataset_initialization
Test RLSidhis2TitleDataset initialization
data_test.py:231
Methodtest_RLTitle2SidDataset_initialization
Test RLTitle2SidDataset initialization
data_test.py:209
Methodtest_SFTData_initialization
Test SFTData initialization
data_test.py:106
Methodtest_SidDataset_initialization
Test SidDataset initialization
data_test.py:144
Methodtest_SidItemFeatDataset_initialization
Test SidItemFeatDataset initialization
data_test.py:182
Methodtest_SidSFTDataset_initialization
Test SidSFTDataset initialization
data_test.py:156
Methodtest_TitleHistory2SidSFTDataset_initialization
Test TitleHistory2SidSFTDataset initialization
data_test.py:257
Methodtest_UserPreference2sidSFTDataset_initialization
Test UserPreference2sidSFTDataset initialization
data_test.py:284
Methodtest_authorization_header
(self, mock_post)
tests/test_minimax_provider.py:208
Methodtest_batch_completion
(self)
tests/test_minimax_provider.py:357
Methodtest_custom_base_url
(self, mock_post)
tests/test_minimax_provider.py:95
Methodtest_deepseek_provider
(self, mock_ds)
tests/test_minimax_provider.py:36
Methodtest_default_base_url
(self, mock_post)
tests/test_minimax_provider.py:107
Methodtest_default_provider_is_openai
(self, mock_openai)
tests/test_minimax_provider.py:29
Methodtest_default_temperature
(self, mock_post)
tests/test_minimax_provider.py:290
Methodtest_empty_prompt_list
(self, mock_post)
tests/test_minimax_provider.py:115
Methodtest_end_to_end_preference_prompt
Test with a prompt similar to actual MiniOneRec usage.
tests/test_minimax_provider.py:373
Methodtest_exception_retries
(self, mock_post)
tests/test_minimax_provider.py:219
← previousnext →301–400 of 426, ranked by callers