Views
No views yet

LightGCN backbone trained with BC-Loss.DQN environment setup.train.txtval.txt (Required for encoder training and loading)test.txtquery.txt (Optional) contains known cold-start interaction history for cold-start setting<user-id> <item1-id> <item2-id> ...
<user-id> <item3-id> <item4-id> <item5-id> ...id values should be numerical and zero-based. Refer to provided datasets (DS1, DS2, DS3) for more details.--eval_graph: Evaluate the pretrained encoder.--eval_query: Use a cold-start recommendation scheme.GraphICS.1python GraphEnc/setup.py build_ext --inplace 2> /dev/null
2python main.py --modeltype BC_LOSS \
3 --cuda -1 \ # Use CPU (Set to device ID, e.g., 0, for GPU)
4 --num_workers 4 \
5 --root datasets \
6 --dataset d1 \
7 --epoch 100 \
8 --enc_batch_size 1024 \
9 --enc_lr 1e-4 \
10 --n_layers 2 \
11 --neg_sample 128 \
12 --freeze_epoch 5 \ # End of encoder parameters
13 --sim_mode user_embedding \ # Start of RL parameters
14 --epoch_max 1 \
15 --step_max 4 \
16 --memory 16384 \
17 --nov_beta 0.0 \
18 --agent_batch 1024 \
19 --eta 1.0 \
20 --agent_lr 1e-3 \
21 --replace_freq -1 \
22 --num_hidden 256 \
23 --tau 1e-4 \
24 --gamma 0.999 \
25 --cql_mode cql_H \
26 --cql_alpha 5.5 \
27 --user_lam 0.5 \
28 --dqn_mode ddqn \
29 --dueling_dqn \
30 --n_augment 3 \
31 --n_aug_scale 5 \
32 --rare_thresh 0.1 \
33 --seq_ratio 0.3 \
34 --rare_ratio 0.2 \
35 --rand_ratio 0.5 \
36 --topk 10 \
37 --episode_batch 128 \
38 --all_episodes 1python GraphEnc/setup.py build_ext --inplace 2> /dev/null
2python main.py --modeltype BC_LOSS \
3 --pretrained_graph \
4 --ckpt_dir weights/d2-fold/Round3/BC_LOSS-LGN \
5 --ckpt n_layers=2tau1=0.07tau2=0.1w=0.5 \ # Specify checkpoint
6 --cuda -1 \
7 --root datasets \
8 --dataset d1 \ # End of encoder parameters
9 --sim_mode user_embedding \ # Start of RL parameters
10 ... # Add similar hyperparameters