fit#

Pipeline.fit(X, mixture)[исходный код]#

Fit mixture model parameters using the iterative pipeline.

Pruned components are immediately removed from responsibilities and notified to steps via clear_after_prune().

Параметры:
  • X (ArrayLike) – Input data sample.

  • mixture (MixtureModel) – Initial mixture model to fit (not modified in-place).

Результат:

Fitted mixture model.

Тип результата:

MixtureModel

Исключение:
  • ValueError – If the starting mixture is invalid for the sample; see BaseEstimator.fit. Also if a maximization block requests an unknown or fixed parameter.

  • IndexError – If a block’s component index is out of bounds.

  • NotImplementedError – If a maximization strategy is not implemented for the component’s family.

Предупрждения:

RuntimeWarning – If a step sets PipelineState.error, stopping fitting prematurely and returning the current mixture.