check#

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

Check convergence of the log-likelihood over supported observations.

See the class description for how the support mask and the baseline are handled.

Параметры:

state (PipelineState) – The current state of the pipeline, which must contain a valid curr_mixture and data X.

Результат:

True when comparable sums differ by less than threshold, or when the sum is non-finite or has no contributing observations. The first call and any change of support return False.

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

bool

Предупрждения:

RuntimeWarning – If no observation is inside the support or the sum is non-finite, including log-densities containing NaN or positive infinity.