flowsom.models.SOMEstimator#
- class flowsom.models.SOMEstimator(xdim=10, ydim=10, rlen=10, mst=1, alpha=(0.05, 0.01), init=False, initf=None, map=True, codes=None, importance=None, seed=None)#
Estimate a Self-Organizing Map (SOM) clustering model.
Methods table#
|
Perform SOM clustering. |
|
Fit the model and predict labels. |
Get metadata routing of this object. |
|
|
Get parameters for this estimator. |
|
Predict labels using the model. |
|
Set the parameters of this estimator. |
Methods#
- SOMEstimator.fit(X, y=None)#
Perform SOM clustering.
- Parameters:
according to importance :type importance: np.array
- SOMEstimator.fit_predict(X, y=None)#
Fit the model and predict labels.
- SOMEstimator.get_metadata_routing()#
Get metadata routing of this object.
Please check User Guide on how the routing mechanism works.
- Returns:
-routing (
MetadataRequest) AMetadataRequestencapsulating routing information.
- SOMEstimator.get_params(deep=True)#
Get parameters for this estimator.
- SOMEstimator.predict(X, y=None)#
Predict labels using the model.
- SOMEstimator.set_params(**params)#
Set the parameters of this estimator.
The method works on simple estimators as well as on nested objects (such as
Pipeline). The latter have parameters of the form<component>__<parameter>so that it’s possible to update each component of a nested object.- Parameters:
**params (dict) – Estimator parameters.
- Returns:
self : estimator instance Estimator instance.