MFA#
- class MFA(groups=None, normalize=True, n_components=2, n_iter=2, copy=True, check_input=True, random_state=None, engine='auto')[source]#
Bases:
PCAMultiple Factor Analysis: a PCA of groups of features, each normalized by its first singular value.
- Parameters:
- fit(X, y=None)[source]#
Fit the MFA.
- Parameters:
X (array-like of shape (n_samples, n_features))
y (None) – Not used.
- Returns:
self
- Return type:
- fit_transform(X)[source]#
Fit the MFA and return the row principal coordinates.
- Parameters:
X (array-like of shape (n_samples, n_features))
- Returns:
coordinates
- Return type:
numpy.ndarray of shape (n_samples, n_components)