prune#

abstractmethod Pruner.prune(state)[исходный код]#

Identify and remove components from the mixture in pipeline state.

Implementations return the state to continue with and may build a new one instead of modifying the given state. Removed indices refer to the mixture given to this call; the pipeline drops the matching columns of state.H itself.

Параметры:

state (PipelineState) – Current pipeline state.

Результат:

Tuple of updated pipeline state and sorted indices of removed components.

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

tuple[PipelineState, list[int]]