set_models_components

menpofit.checks.set_models_components(models, n_components)[source]

Function that sets the number of active components to a list of models.

Parameters
  • models (list or class) – The list of models per scale.

  • n_components (int or float or None or list of those) – The number of components per model.

Raises

ValueError – n_components can be an integer or a float or None or a list containing 1 or {n_scales} of those