Breakpointer#

class Breakpointer[source]#

Bases: ABC

Abstract base class for a pipeline stopping condition.

A Breakpointer is responsible for inspecting the PipelineState after each full iteration of a Pipeline to determine whether the estimation process should terminate. Concrete implementations could check for convergence, maximum number of iterations, or other custom criteria.

The logic of breakpointers comes after pruners, so it is necessary to take into account possible differences in the number of components in state.prev_mixture and state.curr_mixture.

Notes

Subclasses must implement the abstract method check() to define the specific stopping logic.

Methods

check(state)

Evaluates the pipeline state to determine if it should stop.