Source code for asaplib.cluster.ml_cluster_base

"""
Base classes for clustering algorithms.
"""

from sklearn.base import ClusterMixin


[docs]class ClusterBase(ClusterMixin): """ Data structure to perform clustering and store data associated with the clustering output. """ def __init__(self): pass
[docs] def fit(self, X, y=None): """ Parameters ---------- X y Returns ------- """ return self
[docs] def get_cluster_labels(self, index=[]): """ Parameters ---------- index Returns ------- """ pass
[docs] def get_params(self, deep=True): """ Parameters ---------- deep Returns ------- """ pass
[docs] def get_name(self): """ Returns ------- """ return type(self).__name__
[docs]class FitClusterBase(object): def __init__(self): pass
[docs] def fit(self, dmatrix, rho=None): """ Parameters ---------- dmatrix rho Returns ------- """ pass