Metadata-Version: 2.4
Name: gathers
Version: 0.3.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: numpy
Requires-Dist: ruff >=0.8.0, <1.0 ; extra == 'dev'
Provides-Extra: dev
Summary: Clustering algorithm implemented in Rust and wrapped with PyO3
Keywords: clustering,algorithm,rust,pyo3,machine-learning
Author-email: Keming <kemingy94@gmail.com>
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/kemingy/gathers
Project-URL: Repository, https://github.com/kemingy/gathers.git
Project-URL: Documentation, https://github.com/kemingy/gathers
Project-URL: Issues, https://github.com/kemingy/gathers/issues

# Gathers Python

[![PyPI version](https://badge.fury.io/py/gathers.svg)](https://badge.fury.io/py/gathers)

## Installation

```bash
pip install gathers
```

## Usage

```python
from gathers import Gathers
import numpy as np


gathers = Gathers(verbose=True)
rng = np.random.default_rng()
data = rng.random((1000, 64), dtype=np.float32)
centroids = gathers.fit(data, 10)
labels = gathers.batch_assign(data, centroids)
print(labels)
```

