semvec/pypi-packages huggingface dataset:
asm-cli 0.0.26
Command line interface for Alphalogic Service Manager.
License: MIT

<h1>Alphalogic Service Manager CLI
<a href="https://asm_cli.readthedocs.io">
<img src="https://readthedocs.org/projects/asm_cli/badge/?version=latest" alt="Documentation Status" />
</a>
</h1>
The official CLI for Alphalogic Service Manager. <a href="https://asm_cli.readthedocs.io">   Documentation</a>
asm-api 0.0.20
Command line interface for Alphalogic Service Manager.
License: MIT

<h1>Alphalogic Service Manager API
<a href="https://asm_api.readthedocs.io">
<img src="https://readthedocs.org/projects/asm_api/badge/?version=latest" alt="Documentation Status" />
</a>
</h1>
The official API for Alphalogic Service Manager. <a href="https://asm_api.readthedocs.io">   Documentation</a>
fastfunc 0.2.4
Fast NumPy ufunc operations
License: MIT
Requires Python: >=3.6

# fastfunc

[![PyPi Version](https://img.shields.io/pypi/v/fastfunc.svg?style=flat-square)](https://pypi.org/project/fastfunc)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/fastfunc.svg?style=flat-square)](https://pypi.org/pypi/fastfunc/)
[![GitHub stars](https://img.shields.io/github/stars/nschloe/fastfunc.svg?style=flat-square&logo=github&label=Stars&logoColor=white)](https://github.com/nschloe/fastfunc)
[![PyPi downloads](https://img.shields.io/pypi/dm/fastfunc.svg?style=flat-square)](https://pypistats.org/packages/fastfunc)

[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/fastfunc/ci?style=flat-square)](https://github.com/nschloe/fastfunc/actions?query=workflow%3Aci)
[![codecov](https://img.shields.io/codecov/c/github/nschloe/fastfunc.svg?style=flat-square)](https://codecov.io/gh/nschloe/fastfunc)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)


[NumPy's own ufunc
operations](https://docs.scipy.org/doc/numpy/reference/generated/numpy.ufunc.at.html)
are handy, but can be quite slow (see https://github.com/numpy/numpy/issues/5922 and
https://github.com/numpy/numpy/issues/11156).  Use `fastfunc` as a drop-in replacement
```python
# import numpy
# numpy.add.at(target, idx, vals)

import fastfunc

fastfunc.add.at(target, idx, vals)

# If you really only need _add_, you can use
# numpy.bincount(idx, weights=vals, minlength=target.shape[0])
```
to get a speed-up by a factor of 40.

![](https://nschloe.github.io/fastfunc/add.svg)

This is achieved by moving the operations to C++ using [pybind11](https://github.com/pybind/pybind11).

### Installation

fastfunc is [available from the Python Package
Index](https://pypi.org/project/fastfunc/), so simply do
```
pip install -U fastfunc
```
to install or upgrade.

### Testing

To run the fastfunc unit tests, check out this repository and type
```
pytest
```

### License

fastfunc is published under the [MIT license](https://en.wikipedia.org/wiki/MIT_License).
easyann 2021.2.1.15.42.6
description
License: MIT
Requires Python: >=3.5
Keywords: tool wheel,yuanjie,utils

<h1 align = "center">:rocket: ANN :facepunch:</h1>

---

# Install
`pip install fast-ann`

# Usage
```python
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