SoftmaxRegression
Spec for SoftmaxRegressionStat: multinomial (K-way) logistic regression.
Constructors
Properties
Bias optimizer; defaults to optimizer.
Number of input features.
Number of classes; the input y must round to [0, numClasses).
Per-class weight-matrix optimizer; one instance is materialised per class.
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.
SoftmaxRegression
biasOptimizer
Bias optimizer; defaults to optimizer.
featureSize
Number of input features.
numClasses
Number of classes; the input y must round to [0, numClasses).
optimizer
Per-class weight-matrix optimizer; one instance is materialised per class.