ExpectationStep#

class ExpectationStep(is_soft=True)[исходный код]#

Базовые классы: PipelineStep

Expectation step computing component responsibility matrix H.

Supports soft (probabilistic) or hard (winner-takes-all) assignment. Points outside the support of all components receive zero responsibilities.

Параметры:

is_soft (bool, optional) – If True (default), computes posterior probabilities. If False, assigns 1.0 to the most likely component and 0.0 otherwise.

Переменные:

is_soft (bool) – Flag indicating soft or hard assignment.

Methods

run(state)

Compute responsibility matrix H and store it in pipeline state.

clear_after_prune(removed_components_indices)

Clean up step internal state for components removed during pruning.

reset()

Return the step to its post-constructor state (no per-fit state).