prune#
- PriorThresholdPruner.prune(state)[исходный код]#
Remove components with weights below threshold, retaining at least one component.
All components whose weight is strictly below
thresholdare removal candidates. If at least one weight is greater than or equal to the threshold, every candidate is removed. If every weight falls below the threshold, all candidates except the component with the largest weight are removed; ties are resolved in favor of the smallest index. The mixture instateis not modified; the returned state holds a new mixture built withMixtureModel.without_component.- Параметры:
state (PipelineState) – Current pipeline state.
- Результат:
Tuple of updated pipeline state and sorted list of removed component indices.
- Тип результата:
tuple[PipelineState, list[int]]