We follow the pipeline in ULTRA to preprocess the datasets.
We also provide processed datasets. You can download them to ./data via this Google Drive Link
First set the model's config in ./config. We provide an example config of GRPO.
After setting the model parameters, we can start training the model. For example, to train a GRPO model on the Yahoo dataset for 10,000 steps:
python src/main.py -o train \
--input_feed deterministic_online_label_input \
--config_path config/grpo.yaml \
--data_path dataset/yahoo \
--log_path log/yahoo_grpo \
--model_save_path model/yahoo_grpo.pt \
-l 0.0001 -s 20000 In example_lr_grid_search.sh, we provide a script for performing a grid search on the learning rate.
For example, to evaluate the GRPO model on the Yahoo dataset, the command is as follows:
python src/main.py -o test \
--config_path config/grpo.yaml \
--data_path dataset/yahoo \
--model_save_path model/yahoo_grpo.pt \
--output_path output/yahoo_grpo.csvThe output directory contains test results on the Istella and Yahoo datasets using the MLP (DNN) as the backbone. The number at the end of each filename represents the optimal learning rate obtained through grid search.