flowsom.models.BaseFlowSOMEstimator#

class flowsom.models.BaseFlowSOMEstimator(cluster_model, metacluster_model, **kwargs)#

Base class for all FlowSOM estimators in FlowSOM.

Attributes table#

cluster_labels

Return the cluster labels.

codes

(n_clusters, n_features).

distances

Return the distances.

metacluster_labels

Return the metacluster labels.

Methods table#

fit(X[, y])

Fit the model.

fit_predict(X)

Fit the model and predict the clusters.

get_metadata_routing()

Get metadata routing of this object.

get_params([deep])

Get parameters for this estimator.

predict(X)

Predict the clusters.

set_n_clusters(n_clusters)

Set the number of clusters.

set_params(**params)

Set the parameters of this estimator.

subset(indices)

Subset the model.

Attributes#

BaseFlowSOMEstimator.cluster_labels#

Return the cluster labels.

BaseFlowSOMEstimator.codes#

(n_clusters, n_features).

Type:

Return the codes, shaped

BaseFlowSOMEstimator.distances#

Return the distances.

BaseFlowSOMEstimator.metacluster_labels#

Return the metacluster labels.

Methods#

BaseFlowSOMEstimator.fit(X, y=None)#

Fit the model.

BaseFlowSOMEstimator.fit_predict(X)#

Fit the model and predict the clusters.

BaseFlowSOMEstimator.get_metadata_routing()#

Get metadata routing of this object.

Please check User Guide on how the routing mechanism works.

Returns:

-routing (MetadataRequest) A MetadataRequest encapsulating routing information.

BaseFlowSOMEstimator.get_params(deep=True)#

Get parameters for this estimator.

Parameters:

deep (bool, default=True) – If True, will return the parameters for this estimator and contained subobjects that are estimators.

Returns:

-params (dict) Parameter names mapped to their values.

BaseFlowSOMEstimator.predict(X)#

Predict the clusters.

BaseFlowSOMEstimator.set_n_clusters(n_clusters)#

Set the number of clusters.

BaseFlowSOMEstimator.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.

BaseFlowSOMEstimator.subset(indices)#

Subset the model.