Skip to content

Comparison of popular unofficial third-party implementations to the original

Notifications You must be signed in to change notification settings

hidasib/gru4rec_third_party_comparison

Repository files navigation

README

Usage

​ To get started with this repository, follow the instructions below: ​

  1. Clone the repository. ​
  2. In the root folder of the repository, run the following command to initialize the submodules:
    git submodule update --init --recursive

Environments

Third Party Implementations

Before running the code in this repository, you need to set up the necessary environments.

  1. Install Anaconda by following the instructions here. You can choose either Anaconda or Miniconda.

  2. For GRU4REC-pytorch and Torch-GRU4Rec, you need to install PyTorch. The required packages for the PyTorch versions can be found in gru4rec_conda_pytorch_env.yaml. To create the environment, run the following command:

    conda env create -f gru4rec_conda_pytorch_env.yaml
  3. For GRU4Rec_TensorFlow and KerasGRU4Rec, you need to install TensorFlow. The required packages for the TensorFlow versions can be found in gru4rec_conda_tensorflow_env.yaml. To create the environment, run the following command:

    conda env create -f gru4rec_conda_tensorflow_env.yaml
  4. For recpack, you need to install PyTorch. The required packages for this version can be found in gru4rec_conda_recpack_env.yaml. To create the environment, run the following command:

    conda env create -f gru4rec_conda_recpack_env.yaml
  5. Once the environments are created, you can activate them by running one of the following commands:

    • For TensorFlow environment:
      conda activate gru4rec_tensorflow
    • For PyTorch environment:
      conda activate gru4rec_pytorch
    • For recpack environment:
      conda activate gru4rec_recpack
  6. To deactivate the environment, run the following command:

    conda deactivate

Original Implementation

​ Please refer to the requirements mentioned in the repository for more details. ​

Examples

​ This repository provides an example Jupyter Notebook for each model, along with descriptions on how to run the experiments. Refer to the notebooks for detailed instructions. ​

Download link to the datasets

About

Comparison of popular unofficial third-party implementations to the original

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages