kumulant

PlattCalibratorResult

@Serializable
@SerialName(value = "PlattCalibratorResult")
data class PlattCalibratorResult(val slope: Double, val intercept: Double, val totalWeights: Double, val step: Long = 0) : HasObservationCount(source)

Snapshot from PlattCalibratorStat: the learned sigmoid parameters and a helper that maps a raw classifier score to a calibrated probability.

The calibration map is 1 / (1 + exp(-(slope * x + intercept))).

Constructors

PlattCalibratorResult

constructor(slope: Double, intercept: Double, totalWeights: Double, step: Long = 0)(source)

Properties

intercept

Sigmoid intercept.

slope

Sigmoid slope; positive when higher raw scores correlate with positive labels.

step

Optimizer steps taken, carried so a merged calibrator resumes its learning-rate schedule.

totalWeights

open override val totalWeights: Double(source)

Cumulative weight of observations folded into this result.

Link copied to clipboard
open val isEmpty: Boolean

True when totalWeights is not positive, including zero, negative values, and NaN.

Functions

calibrate

Calibrated probability for raw score x via sigmoid(slope * x + intercept).