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-2019.12.6.20.49.36.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 029ea3bafa80a4789ae6b63f2dc90fc5c429ef77050a97dd025a7fe787e282d5 |
|
MD5 | 2a5961bc87b63099f2e0d3423ef7214d |
|
BLAKE2b-256 | c8199338bf032c6c3a8b56ce59d5d246dafbc8e231de3ccc9acf790546c706fe |
Close
Hashes for fast_ann-2019.12.6.20.49.36-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db8bdaced52da90cad60d9ed00907b4bdf92a326df79d6a0213d3590a002103e |
|
MD5 | 54a6364fb90300fab1e5220ae6a8b12d |
|
BLAKE2b-256 | 0ffafd3e00431b041ff3834a2c040df600264e43ac94dbc4a897ffb113be8d8f |