Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 461 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 461 Bytes

Gathers Python

PyPI version

Installation

pip install gathers

Usage

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)