MCA#

class MCA(n_components=2, n_iter=10, copy=True, check_input=True, random_state=None, engine='auto')[source]#

Bases: CA

Multiple Correspondence Analysis of categorical data: a CA of their one-hot encoding. Used by RuleTreeCluster for categorical data.

fit(X, y=None)[source]#

Fit the MCA.

Parameters:
  • X (array-like of shape (n_samples, n_features)) – Categorical data.

  • y (None) – Not used.

Returns:

self

Return type:

MCA

transform(X)[source]#

Computes the row principal coordinates of a dataset.