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.31.50.tar.gz
(11.4 kB
view hashes)
Built Distribution
Close
Hashes for easyann-2021.2.1.14.31.50.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57e597243bb60c15c739663a54c9092284c6feefedd2707e540ed5abfb45317f |
|
MD5 | 8661a59df55edc4612e73c9c30d3accd |
|
BLAKE2b-256 | 14a2f44a597876ea44d32a9e68348dfc012b0f492f22e930ac4afebe0bc1783f |
Close
Hashes for easyann-2021.2.1.14.31.50-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 261a288b4bbf33fd6c875a50c47df6ed13ac0d45411fae3b3da403b179a73fad |
|
MD5 | 9391ab0dbeb809f112b14ee6a340e75c |
|
BLAKE2b-256 | 840e098a3a385fb1f119d0af095c6136fa19c4369f797eafe2cc8d6724ecf96a |