flowsom.models.FlowSOMEstimator#
- class flowsom.models.FlowSOMEstimator(cluster_model=<class 'flowsom.models.som_estimator.SOMEstimator'>, metacluster_model=<class 'flowsom.models.consensus_cluster.ConsensusCluster'>, **kwargs)#
A class that implements the FlowSOM model.
Attributes table#
Return the cluster labels. |
|
(n_clusters, n_features). |
|
Return the distances. |
|
Return the metacluster labels. |
Methods table#
|
Fit the model. |
|
Fit the model and predict the clusters. |
Get metadata routing of this object. |
|
|
Get parameters for this estimator. |
|
Predict the clusters. |
|
Set the number of clusters. |
|
Set the parameters of this estimator. |
|
Subset the model. |
Attributes#
- FlowSOMEstimator.cluster_labels#
Return the cluster labels.
- FlowSOMEstimator.codes#
(n_clusters, n_features).
- Type:
Return the codes, shaped
- FlowSOMEstimator.distances#
Return the distances.
- FlowSOMEstimator.metacluster_labels#
Return the metacluster labels.
Methods#
- FlowSOMEstimator.fit(X, y=None)#
Fit the model.
- FlowSOMEstimator.fit_predict(X)#
Fit the model and predict the clusters.
- FlowSOMEstimator.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.
- FlowSOMEstimator.get_params(deep=True)#
Get parameters for this estimator.
- FlowSOMEstimator.predict(X)#
Predict the clusters.
- FlowSOMEstimator.set_n_clusters(n_clusters)#
Set the number of clusters.
- FlowSOMEstimator.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.
- FlowSOMEstimator.subset(indices)#
Subset the model.