kumulant

ReliabilityResult

@Serializable
@SerialName(value = "ReliabilityResult")
data class ReliabilityResult(val numBins: Int, val sumProbability: DoubleArray, val sumOutcome: DoubleArray, val totalWeights: DoubleArray) : Result(source)

Per-bin reliability snapshot for a binary probabilistic classifier. Bins are equal-width over [0, 1] indexed by predicted probability. Underlying sums use weights so soft labels and importance-weighted streams compose correctly.

Constructors

Link copied to clipboard
constructor(numBins: Int, sumProbability: DoubleArray, sumOutcome: DoubleArray, totalWeights: DoubleArray)

Properties

Link copied to clipboard

Mean predicted probability per bin (NaN where the bin is empty).

Link copied to clipboard

Number of equal-width probability bins covering [0, 1].

Link copied to clipboard

Empirical outcome rate per bin (NaN where the bin is empty).

Link copied to clipboard

Sum w_i*outcome_i per bin.

Link copied to clipboard

Sum w_i*prob_i per bin.

Link copied to clipboard

Sum w_i per bin.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Expected Calibration Error: weighted mean over bins of |meanProbability[i] - outcomeRate[i]|. Empty bins contribute 0.

Link copied to clipboard
open override fun hashCode(): Int

ReliabilityResult

constructor(numBins: Int, sumProbability: DoubleArray, sumOutcome: DoubleArray, totalWeights: DoubleArray)(source)

equals

open operator override fun equals(other: Any?): Boolean(source)

expectedCalibrationError

Expected Calibration Error: weighted mean over bins of |meanProbability[i] - outcomeRate[i]|. Empty bins contribute 0.

hashCode

open override fun hashCode(): Int(source)

meanProbability

Mean predicted probability per bin (NaN where the bin is empty).

numBins

Number of equal-width probability bins covering [0, 1].

outcomeRate

Empirical outcome rate per bin (NaN where the bin is empty).

sumOutcome

Sum w_i*outcome_i per bin.

sumProbability

Sum w_i*prob_i per bin.

totalWeights

Sum w_i per bin.