graphclust.fuzzy.GathGeva#

class graphclust.fuzzy.GathGeva(n_clusters=3, *, m=2.0, tol=0.0001, max_iter=100, init='random', reg=1e-06, random_state=None)[source]#

Bases: ClusterMixin, BaseEstimator

Gath–Geva (fuzzy maximum likelihood estimates) clustering.

The distance of sample \(k\) from cluster \(i\) is inversely proportional to the Gaussian likelihood,

\[D^2_{ik}=\frac{\sqrt{\det\mathbf{F}_i}}{\alpha_i}\exp\!\Big(\tfrac12 (\mathbf{x}_k-\mathbf{v}_i)^T\mathbf{F}_i^{-1}(\mathbf{x}_k-\mathbf{v}_i)\Big),\]

with prior \(\alpha_i=\frac1N\sum_k\mu_{ik}\), and the memberships are \(\mu_{ik}=1/\sum_j(D_{ik}/D_{jk})^{2/(m-1)}\) (all evaluated in the log domain). GG is very sensitive to its initial partition, which is why the hybrid MST algorithm supplies one.

Parameters:
n_clustersint, default=3
mfloat, default=2.0
tolfloat, default=1e-4

Stop when the largest membership change is below tol.

max_iterint, default=100
initndarray (n_samples, n_clusters) or “random”, default=”random”

Initial membership matrix (rows are normalized).

regfloat, default=1e-6

Ridge added to the covariance matrices (relative to their trace).

random_stateint, RandomState or None