This is just an example on how to try to explain the results from a recommendation.
Install the python modules needed (for CPU environment).
# install environment
python -m venv venv
.\venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
# install python modules
pip install -r .\requirements.txt
First, open Recommending Amazon Products-Model.ipynb
to generate the model (gnn.pt) on the current directory.
Then, open one of the other two notebooks to train and use the Explainer.
-
Explainer
-
Recommending Amazon Products using Graph Neural Networks in PyTorch Geometric