kumulant

PinballLoss

@Serializable
@SerialName(value = "PinballLoss")
data class PinballLoss(val tau: Double) : PairedStatSpec<WeightedMeanResult> (source)

Spec for PinballLossStat: quantile (pinball) loss at quantile tau.

Constructors

Link copied to clipboard
constructor(tau: Double)

Properties

Link copied to clipboard
val tau: Double

Target quantile in (0, 1).

Functions

Link copied to clipboard
fun <R : Result> PairedStatSpec<R>.atIndices(indexX: Int, indexY: Int): VectorStatSpec<R>

Adapt a paired spec into a vector spec by consuming the indexX / indexY coordinates.

Link copied to clipboard

Wrap this paired spec so updates are forwarded only when pred evaluates true on (x, y).

Link copied to clipboard

Lift this paired spec to a vector spec, reducing every vector to a pair (xExpr, yExpr) of scalars via xExpr and yExpr.

Link copied to clipboard
fun <R : Result> PairedStatSpec<R>.materialize(concurrency: Concurrency = Concurrency.None): PairedStat<R>
fun StatSpec.materialize(concurrency: Concurrency = Concurrency.None): Stat<*>

Construct a live stat from any StatSpec, dispatching on its modality. Useful for code paths (like StatSchemaDef.materialize) that iterate over an erased Map<String, StatSpec> and don't statically know the modality.

Link copied to clipboard
fun <R : Result> PairedStatSpec<R>.minMaxScaler(targetLow: Double = 0.0, targetHigh: Double = 1.0): PairedStatSpec<R>

Min-max scale both axes of a paired spec against per-axis Range primaries.

Link copied to clipboard

Wrap this paired spec to keep each update with probability rate; seed feeds the PRNG.

Link copied to clipboard

Z-score both axes of a paired spec against per-axis Variance primaries.

Link copied to clipboard

Wrap this paired spec so it only sees one in every every updates.

Link copied to clipboard

Wrap this paired spec so each (x, y) is remapped via xExpr/yExpr before the inner stat sees it.

Link copied to clipboard

Map only the x coordinate; y stays as-is.

Link copied to clipboard

Map only the y coordinate; x stays as-is.

Link copied to clipboard

Wrap this paired spec so every update's weight is multiplied by expr.eval(x, y).

Link copied to clipboard
fun <R : Result> PairedStatSpec<R>.windowed(durationMillis: Long, slices: Int = 10): PairedStatSpec<R>

Wrap this paired spec in a sliding time window of durationMillis split into slices buckets.

Link copied to clipboard

Adapt a paired spec into a series spec by pinning x to fixedX.

Link copied to clipboard

Adapt a paired spec into a series spec by pinning y to fixedY.

Link copied to clipboard

Lift a paired spec into a series spec by self-pairing each input with the value seen k updates ago.

Link copied to clipboard

Adapt a paired spec into a series spec by using the update timestamp as x.

Link copied to clipboard

Adapt a paired spec into a series spec by using the update timestamp as y.

Link copied to clipboard

Wrap this paired spec so every update applies the per-observation weight multiplier.

PinballLoss

constructor(tau: Double)(source)

tau

Target quantile in (0, 1).