kumulant

IsotonicCalibratorResult

@Serializable
@SerialName(value = "IsotonicCalibratorResult")
data class IsotonicCalibratorResult(val numBins: Int, val binMidpoints: DoubleArray, val probabilities: DoubleArray, val totalWeights: Double) : Result(source)

Snapshot from IsotonicCalibratorStat: a non-decreasing step function from raw score in [0, 1] to calibrated probability, derived from a binned (positives, total) histogram via Pool Adjacent Violators.

The arrays are parallel and length numBins. binMidpoints are equal-width centres over [0, 1]; probabilities are PAV-monotonised empirical positive rates, with any empty bins carrying the rate of the nearest non-empty pool.

Constructors

Link copied to clipboard
constructor(numBins: Int, binMidpoints: DoubleArray, probabilities: DoubleArray, totalWeights: Double)

Properties

Link copied to clipboard

Midpoint of each bin; parallel to probabilities.

Link copied to clipboard

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

Link copied to clipboard

Monotone-non-decreasing calibrated probability per bin.

Link copied to clipboard

Cumulative observation weight folded in.

Functions

Link copied to clipboard

Calibrated probability for raw score x. Out-of-range inputs are clamped to [0, 1]; intermediate values are linearly interpolated between bin midpoints to keep the function continuous between known knots.

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

IsotonicCalibratorResult

constructor(numBins: Int, binMidpoints: DoubleArray, probabilities: DoubleArray, totalWeights: Double)(source)

binMidpoints

Midpoint of each bin; parallel to probabilities.

calibrate

Calibrated probability for raw score x. Out-of-range inputs are clamped to [0, 1]; intermediate values are linearly interpolated between bin midpoints to keep the function continuous between known knots.

equals

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

hashCode

open override fun hashCode(): Int(source)

numBins

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

probabilities

Monotone-non-decreasing calibrated probability per bin.

totalWeights

Cumulative observation weight folded in.