fit#

Pipeline.fit(X, mixture)[source]#

Fits the mixture model to the data using the configured pipeline.

This method initializes the pipeline’s state and runs the main loop. The loop consists of executing all steps in order, followed by all pruners. This cycle repeats until any breakpointers indicate that the process should stop.

Parameters:
  • X (ArrayLike) – The input data sample.

  • mixture (MixtureModel) – The initial mixture model to be fitted. An internal copy of this model will be modified throughout the process.

Returns:

The fitted mixture model after the pipeline has converged or been stopped.

Return type:

MixtureModel