Breakpointer#

class Breakpointer[исходный код]#

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

Abstract base class for pipeline stopping conditions.

Evaluated after pruning in each iteration; implementations must account for differing component counts between state.prev_mixture and state.curr_mixture.

check may keep state between calls and is expected to be called once per iteration. The pipeline stops at the first breakpointer that returns True, so the ones after it are not called in that iteration.

Any state accumulated by check lives only within a single Pipeline.fit call: Pipeline.fit invokes reset() on every breakpointer before the first iteration, so reusing the estimator across fits starts from a clean state.

Methods

check(state)

Evaluate whether pipeline execution should terminate.

reset()

Reset all state accumulated by check between calls.