clear_after_prune#

MaximizationStep.clear_after_prune(removed_components_indices)[исходный код]#

Update the working optimization blocks after component pruning.

Removes blocks associated with pruned components and shifts component_id for remaining blocks by the number of removed components before them. Surviving blocks are replaced with updated copies, so the block objects given to the constructor are not modified. The blocks attribute is left unchanged; the renumbering applies to the working list until the next reset().

Параметры:

removed_components_indices (list[int]) – Indices of components that were removed.

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

None