run#

WeightsStep.run(state)[исходный код]#

Update mixture weights from responsibilities.

Replaces state.curr_mixture with a new mixture carrying the updated weights; the mixture passed in the state is not modified. Missing responsibilities set state.error instead of raising.

Параметры:

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

Результат:

Updated state with a new mixture carrying the updated weights.

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

PipelineState