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.49.32.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for easyann-2021.2.1.14.49.32.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e2d4043d918620bbdc7e2c171b79cfb0e904995637026b5674f3b00b92c54d7 |
|
MD5 | ceab427fa40cda95e497ccc884c34e9a |
|
BLAKE2b-256 | 17d6ffbb21b46a3f465829805c299f6e79cdd6fe233dc327da55faca83496722 |
Close
Hashes for easyann-2021.2.1.14.49.32-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be43a06e8bd5b5e485f552c153d704358b394393c1473f4c3f22a3b72322b979 |
|
MD5 | a15f99a4399d6c7436cd091afe402f1e |
|
BLAKE2b-256 | 06244529cbf8bc796cf015ab1ae384caba4aeae9424ca6abf0ed10e92d896cc8 |