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
Close
Hashes for fast-ann-2020.4.27.15.5.40.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff7fc0dbdc7a3f1b766b24dbd137dbfa5f72bceb4d46d62ef3af2e82fe8ba4a8 |
|
MD5 | ff9cd3d866344dcc9539e455683263fc |
|
BLAKE2b-256 | e1993ac1ce537b3db18d590847d8dbeffdb5b361fd184f8f6adb40deaba6c985 |
Close
Hashes for fast_ann-2020.4.27.15.5.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59ba1251470b3108bd848702405082366ca454aae282b0645fdf1f19037d6e5 |
|
MD5 | a74214c574ee19c595ff0965d68a3b02 |
|
BLAKE2b-256 | 23a7bc1895a37c1a0361a1df5ebd95e0d569fc387e05ab8bf8ebe9426dbf2d48 |