Skip to content

Commit

Permalink
Merge branch 'develop' for release-0.21.0a8
Browse files Browse the repository at this point in the history
  • Loading branch information
VarIr committed Sep 12, 2019
2 parents a16f9c7 + 6541f9a commit 22c9331
Show file tree
Hide file tree
Showing 60 changed files with 2,063 additions and 962 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ exclude_lines =
raise TypeError
warnings.warn
only on win32
sys.platform == 'win32'
except ImportError
ModuleNotFoundError
if __name__ == .__main__.:
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
new_test_pypi_release.bash
new_pypi_release.bash
coverage.html/*

_autosummary/
.idea/
venv/
*__pycache__*
Expand Down
34 changes: 26 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,20 @@ matrix:
include:
- os: linux
dist: xenial
sudo: false
sudo: true
- os: osx
osx_image: xcode10.3 # default is 9.x, which fails
sudo: true
- os: osx
# osx_image: xcode10.2
osx_image: xcode11
sudo: true

#addons:
# homebrew:
# packages:
# - cmake
# - gcc@9

env:
global:
- CACHE_DIR="$HOME/virtualenv"
Expand All @@ -22,21 +31,29 @@ before_install:
- travis/install-conda.sh
- export PATH="$MINICONDA_DIR/bin:$PATH"
- hash -r
- travis/install-pip.sh
- conda install -y numpy # install optimized numpy first
- conda install -y llvm libgcc || true # Try to fix build errors on MacOS
- pip install pybind11 # so that nmslib can build
- travis/install-pip.sh # install all the other requirements
- travis/install-build-puffinn.sh # install from cache or build first
- travis/install-build-ngtpy.sh # build and install NGT (others might be added)

install:
- python setup.py build
- python setup.py install
- python3 setup.py build
- python3 setup.py install

before_script:
- flake8 --exit-zero .

script:
- python setup.py test
- pytest --cov=skhubness
- pytest skhubness --cov=skhubness

after_success:
- codecov
# Only on linux, all libraries are supported, thus tested
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then codecov; fi

before_cache:
- brew cleanup || true

cache:
- pip
Expand All @@ -46,6 +63,7 @@ cache:
- "$HOME/.cache/pip"
- "$HOME/virtualenv"
- "$HOME/miniconda"
- "$HOME/Library/Caches/Homebrew"

branches:
only:
Expand Down
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,18 @@ pip install scikit-hubness
Dependencies are installed automatically, if necessary.
`scikit-hubness` requires `numpy`, `scipy` and `scikit-learn`.
Approximate nearest neighbor search and approximate hubness reduction
additionally requires `nmslib` and/or `falconn`.
additionally requires at least one of the following packges:
* [`nmslib`](https://github.com/nmslib/nmslib)
for hierachical navigable small-world graphs ('hnsw')
* [`ngtpy`](https://github.com/yahoojapan/NGT/)
for nearest neighbor graphs ('onng')
* [`puffinn`](https://github.com/puffinn/puffinn)
for locality-sensitive hashing ('lsh')
* [`falconn`](https://github.com/FALCONN-LIB/FALCONN)
for alternative LSH ('falconn_lsh') , or
* [`annoy`](https://github.com/spotify/annoy)
for random projection forests ('rptree').

Some modules require `tqdm` or `joblib`. All these packages are available
from open repositories, such as [PyPI](https://pypi.org).

Expand All @@ -65,6 +76,12 @@ http://scikit-hubness.readthedocs.io/en/latest/user_guide/installation.html).
Documentation is available online:
http://scikit-hubness.readthedocs.io/en/latest/index.html


## What's new

See the [changelog](docs/changelog.md) to find what's new in the latest package version.


## Quickstart

Users of `scikit-hubness` may want to
Expand Down
30 changes: 0 additions & 30 deletions docs/_autosummary/skhubness.analysis.Hubness.rst

This file was deleted.

42 changes: 0 additions & 42 deletions docs/_autosummary/skhubness.neighbors.BallTree.rst

This file was deleted.

26 changes: 0 additions & 26 deletions docs/_autosummary/skhubness.neighbors.DistanceMetric.rst

This file was deleted.

30 changes: 0 additions & 30 deletions docs/_autosummary/skhubness.neighbors.HNSW.rst

This file was deleted.

42 changes: 0 additions & 42 deletions docs/_autosummary/skhubness.neighbors.KDTree.rst

This file was deleted.

31 changes: 0 additions & 31 deletions docs/_autosummary/skhubness.neighbors.KNeighborsClassifier.rst

This file was deleted.

30 changes: 0 additions & 30 deletions docs/_autosummary/skhubness.neighbors.KNeighborsRegressor.rst

This file was deleted.

28 changes: 0 additions & 28 deletions docs/_autosummary/skhubness.neighbors.KernelDensity.rst

This file was deleted.

Loading

0 comments on commit 22c9331

Please sign in to comment.