Closed thigazholi closed 4 months ago
FEARec is a model designed for sequential recommendation, with strong modeling capabilities in both the time and frequency domains. If you want to train the FEARec model on custom data, here are some steps and recommendations:
Choosing seq_len
:
seq_len
refers to the maximum length of user behavior sequences. In your configuration file, you can set the value of seq_len
to fit your dataset. Typically, you can choose an appropriate value based on the average behavior sequence length in your dataset. If your dataset has varying sequence lengths, consider selecting a slightly larger value to avoid truncating longer sequences. However, keep in mind that excessively large seq_len
values may lead to high memory consumption, so it's essential to strike a balance.Training the FEARec Model:
run_hyper.py
script to tune the model's hyperparameters. Here's an example command (modify it according to your dataset and requirements):
python run_hyper.py --model=FEARec --dataset=your_dataset_name --config_files=your_config_files_path --params_file=hyper.test
Replace your_dataset_name
with your dataset's name and your_config_files_path
with the path to your configuration files. You can set the hyperparameter search space in the hyper.test
file.
Custom Dataset:
I hope this information helps!