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
easyann-2021.2.1.14.42.32.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for easyann-2021.2.1.14.42.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 164a1f2ae1950d98f06a14da23abefac7bc645489a2891a2191b0319282986d2 |
|
MD5 | 7ffc39de3e2c97f61039e758a96a9ad3 |
|
BLAKE2b-256 | 038a7dcbf90d40b30d9a3d58c72e8727112e915be7278a5d02392cab9ac3259e |
Close
Hashes for easyann-2021.2.1.14.42.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 720f59068e63bd23af7e72f99628ac0750d8d051def13953a9695765b439dc9e |
|
MD5 | 35ac4e44b80b188e301d1a845c08fd47 |
|
BLAKE2b-256 | bf1895a51c5a30299a01f695661aa4b4330cbab4b8ea3be79879eace9a62ea8b |