Skip to content

Frequently Asked Questions

Common questions and troubleshooting guide for Torch-RecHub.

  • Will there be a TensorFlow version?

    • Not currently planned

    • This project's core positioning is to provide easy-to-use model implementations for beginners, referencing industry-used models. PyTorch has a wider audience base.

  • Why is the AUC=0 when running the example?

    • The example contains 100 sample data entries, which are meant to demonstrate data format and feature types, ensuring the code runs smoothly. It does not guarantee performance metrics.
    • If you need to test performance, you can download the dataset using the links described in the readme, then refer to the parameter configuration file in the example for model training and evaluation.
  • Installing annoy

    • Installing annoy on Windows

      • Online installation
      pip install annoy
      

      If you don't have C++ related compilation environment on Windows, you might see the following error:

      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      ---------------------------------------------------------------------
      

      Error screenshot: alt text

      In this case, you can use offline installation

      • Offline installation

      Download annoy library from: https://www.lfd.uci.edu/~gohlke/pythonlibs/#_annoy

      pip install annoy‑1.17.0‑cp39‑cp39‑win_amd64.whl
      
    • Installing annoy on Linux/Mac OS

      • Online installation
      pip install annoy
      

      Normally Mac can install successfully online. If online installation fails with nose-related errors at the bottom, proceed with offline compilation installation

    After installing annoy, you can proceed to install torch-rechub

    pip install --upgrade torch-rechub