prune#
- abstractmethod Pruner.prune(state)[source]#
Analyzes the pipeline state and prunes components from the mixture.
This method is called by the
Pipelineto inspect the current mixture model and decide whether to remove one or more components based on the implemented strategy (e.g., if a component’s weight falls below a threshold).- Parameters:
state (PipelineState) – The current state of the pipeline, containing the data, mixture model, and other relevant information.
- Returns:
The new pipeline state. If components were removed, this state contains the updated mixture model. Otherwise, it returns the original state.
- Return type: