cleverly.learners.ParametricFitDiagnostics#

class cleverly.learners.ParametricFitDiagnostics(learner: str, coef: tuple[float, ...], converged: bool, score_norm: float, iterations: int, reciprocal_condition: float)[source]#

What one parametric fit reports.

Parameters:
learnerstr

The learner class name.

coeftuple of float

The fitted coefficients on the original feature scale, intercept first.

convergedbool

Whether Newton’s method met its step tolerance. A fit that did not converge raises, so a stored entry always reads True.

score_normfloat

The largest absolute weighted mean score at the fitted coefficients.

iterationsint

The Newton steps taken.

reciprocal_conditionfloat

The reciprocal condition number of the equilibrated information matrix at the fit.

Methods#

Attributes#

ParametricFitDiagnostics.learner: str#
ParametricFitDiagnostics.coef: tuple[float, ...]#
ParametricFitDiagnostics.converged: bool#
ParametricFitDiagnostics.score_norm: float#
ParametricFitDiagnostics.iterations: int#
ParametricFitDiagnostics.reciprocal_condition: float#