prune#
- PriorThresholdPruner.prune(state)[source]#
Removes components from the mixture whose weights are below the threshold.
This method inspects
state.curr_mixtureand removes any component whose weight is less thanthreshold. The pruning logic ensures that at least one component always remains in the model. The weights of the remaining components are automatically re-normalized by therework_pysatl_mpest.core.MixtureModel.- Parameters:
state (PipelineState) – The current state of the pipeline, containing the mixture model to be pruned.
- Returns:
The updated pipeline state. If components were removed,
state.curr_mixturewill be a new, smallerrework_pysatl_mpest.core.MixtureModelinstance. Otherwise, the original state is returned.- Return type: