kumulant

PlattCalibratorResult

@Serializable
@SerialName(value = "PlattCalibratorResult")
data class PlattCalibratorResult(val slope: Double, val intercept: Double, val totalWeights: Double) : 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)(source)

Properties

intercept

Sigmoid intercept.

slope

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

totalWeights

open override val totalWeights: Double(source)

Cumulative observation weight folded in.

Link copied to clipboard
open val isEmpty: Boolean

True when no observation has been folded in, so every other field is a placeholder.

Functions

calibrate

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