scikit-hubness icon indicating copy to clipboard operation
scikit-hubness copied to clipboard

v0.30: Documentation

Open VarIr opened this issue 3 years ago • 5 comments

All documentation must be adapted to the new API, including example use-cases.

VarIr avatar Mar 15 '22 17:03 VarIr

Quickstart example of hubness estimation, hubness reduction and usage in sklearn workflows updated in the readme in #105. Userguide and further examples upcoming.

VarIr avatar Mar 25 '22 13:03 VarIr

Is there a beta release for v0.30?

jolespin avatar May 21 '24 16:05 jolespin

The main branch here is at v0.30. I just tested the following, which works for me:

conda create --prefix /tmp/scikit-hubness python=3.10
conda activate /tmp/scikit-hubness
pip install https://github.com/VarIr/scikit-hubness/archive/main.tar.gz 
python3
# ... and running the quickstart example code from README.md

VarIr avatar May 22 '24 06:05 VarIr

Awesome, thanks for your help. This works for me too w/ v0.30a.

Apologies for the mixup. If it helps, I was able to reproduce the error from last time which happened both on Apple Silicon and Linux server I have access to.

mamba create -y -n test_env -c conda-forge python=3.10
conda activate test_env
pip install scikit-hubness

Error looks like this:

      OSError: [Errno 66] Directory not empty: '/private/var/folders/kx/9xfkrf_10pj5kdyh9my45twm0000gn/T/pip-install-l7ocvwkq/nmslib_2bcd54c85a904f4b9c86c5b930bdbdd7/.eggs/numpy-1.26.4-py3.10-macosx-10.9-x86_64.egg/numpy-1.26.4.dist-info' -> '/private/var/folders/kx/9xfkrf_10pj5kdyh9my45twm0000gn/T/pip-install-l7ocvwkq/nmslib_2bcd54c85a904f4b9c86c5b930bdbdd7/.eggs/numpy-1.26.4-py3.10-macosx-10.9-x86_64.egg/EGG-INFO'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed cleaning build dir for nmslib
Successfully built annoy falconn
Failed to build scikit-learn nmslib
ERROR: Could not build wheels for scikit-learn, nmslib, which is required to install pyproject.toml-based projects

jolespin avatar May 22 '24 18:05 jolespin

Thank you. So building some dependencies fails when installing an old version from PyPI. This is not entirely surprising in particular for nmslib, which hasn't been maintained since 2021 or so.

VarIr avatar May 23 '24 07:05 VarIr