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)
-
faiss不同量级对应的训练时间及内存测试
-
压缩方式测试
-
四种组合:默认是查向量返回 distance与index
- id => id/vector
- vector => id/vector
- push场景需要 docid => title_vector => docid
-
线上服务
- id2word
- id2vector
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
File details
Details for the file fast-ann-2020.4.27.15.5.40.tar.gz
.
File metadata
- Download URL: fast-ann-2020.4.27.15.5.40.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.42.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff7fc0dbdc7a3f1b766b24dbd137dbfa5f72bceb4d46d62ef3af2e82fe8ba4a8 |
|
MD5 | ff9cd3d866344dcc9539e455683263fc |
|
BLAKE2b-256 | e1993ac1ce537b3db18d590847d8dbeffdb5b361fd184f8f6adb40deaba6c985 |
File details
Details for the file fast_ann-2020.4.27.15.5.40-py3-none-any.whl
.
File metadata
- Download URL: fast_ann-2020.4.27.15.5.40-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.42.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59ba1251470b3108bd848702405082366ca454aae282b0645fdf1f19037d6e5 |
|
MD5 | a74214c574ee19c595ff0965d68a3b02 |
|
BLAKE2b-256 | 23a7bc1895a37c1a0361a1df5ebd95e0d569fc387e05ab8bf8ebe9426dbf2d48 |