Installation of benchscofi

The complete list of dependencies for benchscofi can be found at requirements.txt (Pip). This package is compatible with Python 3.8, and should at least run on Linux.

Running the Docker image (easiest)

You can download the Docker image hosted on DockerHub and start a container on this image:

$ docker push recessproject/benchscofi:<release-version>
$ docker run -it recessproject/benchscofi:<release-version>

Installation notes

Instead of using Pip (command “python3 -m pip install benchscofi”), one might need to download from source files. In that case, download the tar.gz file from PyPI and extract it (or clone the GitHub repository, for the latest non-stable release):

$ git clone https://github.com/RECeSS-EU-Project/benchscofi.git
$ cd benchscofi/
$ python3 -m pip install --upgrade pip wheel
$ python3 -m pip install -r pip/requirements.txt
$ python3 -m pip install .

An issue might arise with the version of Tensorflow provided in the requirements.txt. In fact, the requirement for tensorflow might be too restrictive. In that case, rely on the dependency conflict solver of pip (which might take a while, but will successfully solve everything) and proceed as follows:

  • Replace the install_requires field in file setup.py by

    install_requires=["stanscofi", "tensorflow", "pulearn",
     "torch", "fastai", "torch_geometric", "pyFFM", "pytorch-lightning", "scikit-learn==1.2.*",
     "libmf"]
    

and then run the following commands:

$ git clone https://github.com/RECeSS-EU-Project/benchscofi.git
$ cd benchscofi/ && python3 -m pip install .