run#
- MaximizationStep.run(state)[исходный код]#
Execute the M-step, updating component parameters.
Applies the blocks of the working list, which reflects pruning done by
clear_after_prune()until the nextreset(). All blocks are applied atomically: the results are collected in a working list of components, andstate.curr_mixtureis replaced by a new mixture with the updated components and the same weights. The mixture passed in the state is not modified. Strategy exceptions propagate without changingstate.curr_mixture. Missing responsibilities seterrorinstead.- Параметры:
state (PipelineState) – Current state containing responsibility matrix H and current mixture.
- Результат:
Updated state with a new mixture model.
- Тип результата:
- Исключение:
ValueError – If a block requests an unknown or fixed parameter.
IndexError – If a block’s component index is out of bounds.
NotImplementedError – If a strategy is not implemented for the component’s family.