Thank you for your interest in our work. This document is intended to provide detailed guidance on implementing the XSGCL within the SELFRec framework. Due to the fact that XSGCL is designed based on SELFRec, in order to respect the work of the original author, only the code related to this work is provided here.
- Model Implementation: The core implementation of the XSGCL model can be found in the
XSGCL.py
file. This file contains the main architecture and algorithmic logic of the model. - Feature Augmentation: The HLVS feature augmentation method is implemented in the
contrastLoss_ln_var
method withinloss_torch.py
. - Loss Function: The implementation of the PBPR loss function is provided in the
bpr_loss_pop
method withinloss_torch.py
and thepop
method inXSGCL.py
.
To run the XSGCL model within the SELFRec framework, please follow these steps:
- Environment Setup: Ensure that your runtime environment meets the dependencies required by SELFRec.
- Model Configuration: Relevant hyperparameters for the model can be found and adjusted in the
XSGCL.conf
file. - Run the Model: Once the model is configured according to the guidance in the SELFRec documentation, it is ready to be executed.
If you encounter any issues while using the model, or if you would like to discuss technical details with me, please feel free to contact me through the issues.