description
Project description
:rocket: ANN :facepunch:
Install
pip install fast-ann
Usage
from ann import ANN
import numpy as np
data = np.random.random((1000, 128)).astype('float32')
ann = ANN()
ann.train(data, index_factory='IVF4000, Flat', noramlize=True)
dis, idx = ann.search(data[:10])
print(dis)
print(idx)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for fast-ann-2019.12.4.20.42.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | da59832740664cd6025636113cd83007b2980df4ce406ef4a7084ff3d30c58e3 |
|
MD5 | 69e3fe9dff4119c483621f03da8f9fea |
|
BLAKE2b-256 | ba51316beecb59065839c730073bf1f042c2bb57971277ae62620faa73fdf330 |
Close
Hashes for fast_ann-2019.12.4.20.42.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e54a6e0f465f4f0e1b9e404b5124aa65c8c5bb5e44c78553e4ab09fa9d16b321 |
|
MD5 | ebb17d7f04f44d07f9598da9a2474bba |
|
BLAKE2b-256 | 38675fc23a23dc517b44d3efba87f188d0a551e04487b11cb6ba37a6d7914782 |