# 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) # only support float32
centroids = gathers.fit(data, 10)
labels = gathers.batch_assign(data, centroids)
print(labels)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "gathers",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "clustering, algorithm, rust, pyo3, machine-learning",
"author": null,
"author_email": "Keming <kemingy94@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/53/4a/a50c2f6c5d57231e918a32c3fdd4634b797a0df04822ff3d5315ec0f53d1/gathers-0.3.1.tar.gz",
"platform": null,
"description": "# Gathers Python\n\n[![PyPI version](https://badge.fury.io/py/gathers.svg)](https://badge.fury.io/py/gathers)\n\n## Installation\n\n```bash\npip install gathers\n```\n\n## Usage\n\n```python\nfrom gathers import Gathers\nimport numpy as np\n\n\ngathers = Gathers(verbose=True)\nrng = np.random.default_rng()\ndata = rng.random((1000, 64), dtype=np.float32) # only support float32\ncentroids = gathers.fit(data, 10)\nlabels = gathers.batch_assign(data, centroids)\nprint(labels)\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Clustering algorithm implemented in Rust and wrapped with PyO3",
"version": "0.3.1",
"project_urls": {
"Documentation": "https://github.com/kemingy/gathers",
"Homepage": "https://github.com/kemingy/gathers",
"Issues": "https://github.com/kemingy/gathers/issues",
"Repository": "https://github.com/kemingy/gathers.git"
},
"split_keywords": [
"clustering",
" algorithm",
" rust",
" pyo3",
" machine-learning"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "39ac97cd0f891df013639cb43640427938586f22d18a935a094eb027082c885d",
"md5": "6469bac2f8c2ef43f905f7d549fb3786",
"sha256": "fe6dd1e36cd5f286b6fa33de3806945353fa18c86fae76119447077e3b2a282d"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "6469bac2f8c2ef43f905f7d549fb3786",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 503215,
"upload_time": "2024-12-06T02:32:49",
"upload_time_iso_8601": "2024-12-06T02:32:49.441204Z",
"url": "https://files.pythonhosted.org/packages/39/ac/97cd0f891df013639cb43640427938586f22d18a935a094eb027082c885d/gathers-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "aebec6d7fa976a4e761e9fe2b66293ab84c59e822d43f9185a6b093c9020816e",
"md5": "930fc27188ded7a389542d6f80607ac3",
"sha256": "cfd57b82b6e2925c650e05cfcfb70c13cddff8faca951d47cf553fa6d6a12f8a"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "930fc27188ded7a389542d6f80607ac3",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 562216,
"upload_time": "2024-12-06T02:32:48",
"upload_time_iso_8601": "2024-12-06T02:32:48.182475Z",
"url": "https://files.pythonhosted.org/packages/ae/be/c6d7fa976a4e761e9fe2b66293ab84c59e822d43f9185a6b093c9020816e/gathers-0.3.1-cp39-abi3-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e256cf3bda684336b8ebea1de5b7b5cc408d6ac026e86504c74217cf82f47b06",
"md5": "897771ff8d999b0b377075ab09338234",
"sha256": "6527c629f3a3423e2fb47ea29976aa71567473bad0ca3dc79ac1018d30b35262"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"has_sig": false,
"md5_digest": "897771ff8d999b0b377075ab09338234",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 727285,
"upload_time": "2024-12-06T02:32:39",
"upload_time_iso_8601": "2024-12-06T02:32:39.247900Z",
"url": "https://files.pythonhosted.org/packages/e2/56/cf3bda684336b8ebea1de5b7b5cc408d6ac026e86504c74217cf82f47b06/gathers-0.3.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "ad8aa737acd32a905015f7a11ae29272a87d1e70c267da040705b3fb8d6161a3",
"md5": "828ef81faebbe4e13e52d1f8c039e979",
"sha256": "aa076c0da87454076e603e5c68debd64b1dfab1235c1e5d34e14dec765879174"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
"has_sig": false,
"md5_digest": "828ef81faebbe4e13e52d1f8c039e979",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 469560,
"upload_time": "2024-12-06T02:32:41",
"upload_time_iso_8601": "2024-12-06T02:32:41.363829Z",
"url": "https://files.pythonhosted.org/packages/ad/8a/a737acd32a905015f7a11ae29272a87d1e70c267da040705b3fb8d6161a3/gathers-0.3.1-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "a59782829fcaf8b43c717a6c0493c43ff82fa8bdee11e51ce1e38bb697ecef00",
"md5": "d5948243c70862792eefd82e47faa21c",
"sha256": "687473e9555e646dfcc5e40640a4d2cee10527cf655adb7b1aa1d2c7ed6412de"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl",
"has_sig": false,
"md5_digest": "d5948243c70862792eefd82e47faa21c",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 648764,
"upload_time": "2024-12-06T02:32:45",
"upload_time_iso_8601": "2024-12-06T02:32:45.186673Z",
"url": "https://files.pythonhosted.org/packages/a5/97/82829fcaf8b43c717a6c0493c43ff82fa8bdee11e51ce1e38bb697ecef00/gathers-0.3.1-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c0a3fa9abc6521029dcad98c5d7077ded65afbcf7eb76755acb3f171d85e3f86",
"md5": "dc9f099bdb984f4c5d8b1c0d991c06df",
"sha256": "ef819f65b26d4892ada23aec7580e78e0166fdd728d34ff01a76b2f8b5511fc3"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
"has_sig": false,
"md5_digest": "dc9f099bdb984f4c5d8b1c0d991c06df",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 573136,
"upload_time": "2024-12-06T02:32:42",
"upload_time_iso_8601": "2024-12-06T02:32:42.586476Z",
"url": "https://files.pythonhosted.org/packages/c0/a3/fa9abc6521029dcad98c5d7077ded65afbcf7eb76755acb3f171d85e3f86/gathers-0.3.1-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "54c94c0cc8ef9b2375aef830f75b4fe9c6aa08122ec1259d6450bda36902d9d0",
"md5": "cefe76e83e34ed7316e482df517b5e87",
"sha256": "94b1bfff3f913242ccbe5561cd5b2e377d2dfc6cc1c8aa110573819f01c82b07"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
"has_sig": false,
"md5_digest": "cefe76e83e34ed7316e482df517b5e87",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 559602,
"upload_time": "2024-12-06T02:32:43",
"upload_time_iso_8601": "2024-12-06T02:32:43.789127Z",
"url": "https://files.pythonhosted.org/packages/54/c9/4c0cc8ef9b2375aef830f75b4fe9c6aa08122ec1259d6450bda36902d9d0/gathers-0.3.1-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f52aef3a556368d4be27d17819236fc499cc199995afaadb29a5dab53bd8d714",
"md5": "4ad99524019a83d9e8ba9abbaab5e4f4",
"sha256": "567bc48c1a665f2cfe7b1014f8b6236896a1ede57f3c79ac97a5fee8587af36c"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "4ad99524019a83d9e8ba9abbaab5e4f4",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 593749,
"upload_time": "2024-12-06T02:32:46",
"upload_time_iso_8601": "2024-12-06T02:32:46.865282Z",
"url": "https://files.pythonhosted.org/packages/f5/2a/ef3a556368d4be27d17819236fc499cc199995afaadb29a5dab53bd8d714/gathers-0.3.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "1b70cb647318754bcebe5a83648c0dac648735770f65924b37777ee25c1e71b5",
"md5": "6fc7cb95b1108615de852d06024fbcad",
"sha256": "2ff8b916cf55493491721d0848fbc6fb0a01f1e5f9ee9bd63b1c9ed29a60a8b5"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-musllinux_1_2_aarch64.whl",
"has_sig": false,
"md5_digest": "6fc7cb95b1108615de852d06024fbcad",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 903005,
"upload_time": "2024-12-06T02:32:50",
"upload_time_iso_8601": "2024-12-06T02:32:50.788094Z",
"url": "https://files.pythonhosted.org/packages/1b/70/cb647318754bcebe5a83648c0dac648735770f65924b37777ee25c1e71b5/gathers-0.3.1-cp39-abi3-musllinux_1_2_aarch64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "70f7cefd4d49ebbcda1ba64fdb407b9635cf52d85714efe299925ee10deba179",
"md5": "16e5726ffc8fc4aad92aeae2b72993c0",
"sha256": "5f974f65a31376dd6137f1b01fefe590e81bb3d83f8f6c478809f881f71626e5"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-musllinux_1_2_armv7l.whl",
"has_sig": false,
"md5_digest": "16e5726ffc8fc4aad92aeae2b72993c0",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 730897,
"upload_time": "2024-12-06T02:32:52",
"upload_time_iso_8601": "2024-12-06T02:32:52.213765Z",
"url": "https://files.pythonhosted.org/packages/70/f7/cefd4d49ebbcda1ba64fdb407b9635cf52d85714efe299925ee10deba179/gathers-0.3.1-cp39-abi3-musllinux_1_2_armv7l.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6100adc7660db9dde2c6b918b93d1da884a6738fdcf6f317edb666b1d7fe0683",
"md5": "7f8603fda1dbd772d0b10f2de754852d",
"sha256": "735bcb49e7278eeef59420cf99e558a39840fad2c178a9af14166cf7fdb97d0e"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-musllinux_1_2_i686.whl",
"has_sig": false,
"md5_digest": "7f8603fda1dbd772d0b10f2de754852d",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 813257,
"upload_time": "2024-12-06T02:32:53",
"upload_time_iso_8601": "2024-12-06T02:32:53.496792Z",
"url": "https://files.pythonhosted.org/packages/61/00/adc7660db9dde2c6b918b93d1da884a6738fdcf6f317edb666b1d7fe0683/gathers-0.3.1-cp39-abi3-musllinux_1_2_i686.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4222a88cb960a454fe4e345c265f9ced11157decec366c255fdc7221ddcec5e9",
"md5": "5e4cd2aee456640b4aaedbcc5913b61f",
"sha256": "a303c355bbf739a237b74eb35566cffbc5b68e8a29e9546185e8a3160fcf7889"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-musllinux_1_2_x86_64.whl",
"has_sig": false,
"md5_digest": "5e4cd2aee456640b4aaedbcc5913b61f",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 764259,
"upload_time": "2024-12-06T02:32:54",
"upload_time_iso_8601": "2024-12-06T02:32:54.783156Z",
"url": "https://files.pythonhosted.org/packages/42/22/a88cb960a454fe4e345c265f9ced11157decec366c255fdc7221ddcec5e9/gathers-0.3.1-cp39-abi3-musllinux_1_2_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e842a7942af77b7058a17d5554e7e340eb804556b418f240603d85b105b7eff8",
"md5": "777063a839b4a256653c9801ff0ece38",
"sha256": "d92853067ed779d1d6c15a3b604af8a66a983f81773dc80b866bd9a15318b215"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-win32.whl",
"has_sig": false,
"md5_digest": "777063a839b4a256653c9801ff0ece38",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 379368,
"upload_time": "2024-12-06T02:32:59",
"upload_time_iso_8601": "2024-12-06T02:32:59.461847Z",
"url": "https://files.pythonhosted.org/packages/e8/42/a7942af77b7058a17d5554e7e340eb804556b418f240603d85b105b7eff8/gathers-0.3.1-cp39-abi3-win32.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "6aee7b7d778b14f71e8cfab90e9d9ecfd1e9c08cacf3de0b25e8c97cbb2b9cde",
"md5": "8c71fdc31cc17c92879df9d9ef1e5372",
"sha256": "bcca1cde68de8e94fcaadf3fbda11225d73783f62c5632b408557c63ba0e2030"
},
"downloads": -1,
"filename": "gathers-0.3.1-cp39-abi3-win_amd64.whl",
"has_sig": false,
"md5_digest": "8c71fdc31cc17c92879df9d9ef1e5372",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 376734,
"upload_time": "2024-12-06T02:32:57",
"upload_time_iso_8601": "2024-12-06T02:32:57.596625Z",
"url": "https://files.pythonhosted.org/packages/6a/ee/7b7d778b14f71e8cfab90e9d9ecfd1e9c08cacf3de0b25e8c97cbb2b9cde/gathers-0.3.1-cp39-abi3-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "534aa50c2f6c5d57231e918a32c3fdd4634b797a0df04822ff3d5315ec0f53d1",
"md5": "3a671aead92368bc4fccfdd87a290ff6",
"sha256": "c749882fa9345eb7629832c06c2ea6ac9475ec67c3f219b7529fe7e24a43ef7c"
},
"downloads": -1,
"filename": "gathers-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "3a671aead92368bc4fccfdd87a290ff6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 43536,
"upload_time": "2024-12-06T02:32:56",
"upload_time_iso_8601": "2024-12-06T02:32:56.659138Z",
"url": "https://files.pythonhosted.org/packages/53/4a/a50c2f6c5d57231e918a32c3fdd4634b797a0df04822ff3d5315ec0f53d1/gathers-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-06 02:32:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kemingy",
"github_project": "gathers",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "gathers"
}