FAMD#

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

Bases: MFA

Factor Analysis of Mixed Data: an MFA with a group of numerical features and a group of categorical features. Used by RuleTreeCluster for mixed data.

Parameters:
  • n_components – See PCA.

  • n_iter – See PCA.

  • copy – See PCA.

  • check_input – See PCA.

  • random_state – See PCA.

  • engine – See PCA.

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

Fit the FAMD, grouping the columns into numerical and categorical.

Parameters:
  • X (array-like of shape (n_samples, n_features))

  • y (None) – Not used.

Returns:

self

Return type:

FAMD

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

Fit the FAMD and return the row principal coordinates.

Parameters:
  • X (array-like of shape (n_samples, n_features))

  • y (None) – Not used.

Returns:

coordinates

Return type:

numpy.ndarray of shape (n_samples, n_components)