DiagonalRegression
Spec for DiagonalRegressionStat: factorised-Gaussian posterior with per-coordinate precision.
Constructors
Properties
Functions
Wrap this regression spec so updates are forwarded only when pred evaluates true.
Construct a live RegressionStat from a RegressionStatSpec. See SeriesStatSpec.materialize.
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.
Element-wise min-max scale a regression spec's feature vector.
Element-wise standardise a regression spec's feature vector.
Wrap this regression spec so it only sees one in every every updates.
Wrap this regression spec so x is remapped by expr before the inner stat sees it.
Wrap this regression spec so y is remapped by expr before the inner stat sees it.
Wrap this regression spec so every update's weight is multiplied by expr.eval(0, y, v).
Wrap this regression spec so every update uses weight regardless of caller input.
DiagonalRegression
featureSize
Number of input features.
learningRate
Per-step learning rate.
link
penalty
priorPrecision
Initial per-coordinate precision (inverse variance) seeded into every weight.