LikelihoodBreakpointer#
- class LikelihoodBreakpointer(threshold)[исходный код]#
Базовые классы:
BreakpointerStops the pipeline when the log-likelihood of the mixture converges.
This breakpointer terminates the iterative estimation process when the absolute difference between the current and previous log-likelihood values falls below a specified threshold:
\[|L_{t+1} - L_t| < threshold\]Only observations whose mixture log-density is not
-infcontribute to the sum. Consecutive sums are compared only when the same observations contribute; a changed support mask establishes a new comparison baseline. Thus, this sum can be finite even whenmixture.loglikelihood(X)is-infbecause that method includes observations outside the support.An empty support or a non-finite sum emits a
RuntimeWarningand stops the pipeline. The stored sum and support mask are cleared only byreset(), whichPipeline.fit()calls before every fitting run.- Параметры:
threshold (Scalar) – The convergence threshold for the log-likelihood difference. Must be a positive number.
- Переменные:
threshold (Scalar) – The convergence threshold.
- Исключение:
ValueError – If threshold is not greater than 0.
Methods