aquaduct.geom.cluster module¶
This module provides functions for clusterization.
Clusterization is done by scikit-learn module.
-
class
BarberClusterResult(labels_)[source]¶ Bases:
objectHelper class for results of barber clusterization.
-
MeanShiftBandwidth(X, **kwargs)[source]¶ Helper function for automatic calculation of a bandwidth for MeanShift method.
Parameters: X (Iterable) – Coordinates of points to be clustered.
-
class
PerformClustering(method, **kwargs)[source]¶ Bases:
objectHelper class for clusterization.
-
__init__(method, **kwargs)[source]¶ Parameters: method (object) – Class that implements cclusterization via fit method.
-
fit(coords, spheres=None)[source]¶ Parameters: - coords (Iterable) – Input coordinates of points to be clustered.
- spheres (Iterable) – Input spheres for each point. Optional, important only if
methodisBarberCluster.
Returns: Clusters numbers.
Return type: list of int
-