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 next reset(). All blocks are applied atomically: the results are collected in a working list of components, and state.curr_mixture is 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 changing state.curr_mixture. Missing responsibilities set error instead.

Параметры:

state (PipelineState) – Current state containing responsibility matrix H and current mixture.

Результат:

Updated state with a new mixture model.

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

PipelineState

Исключение:
  • 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.