LinearRegressionResult
Common shape across multivariate-x linear regression snapshots.
Concrete subtypes add uncertainty quantification:
StochasticRegressionResult: point estimates only.
DiagonalRegressionResult: per-coefficient precision (factorised posterior).
CovarianceRegressionResult: full posterior covariance + Cholesky factor.
Sealed + @Serializable. Concrete weights round-trip as DenseVector today; the public field is typed VectorView so a sparse variant can swap in without breaking callers. Regression error metrics from HasRegression become meaningful once sse is tracked; implementations that don't accumulate it return 0.0.
Inheritors
Properties
Number of features in weights.
Mean squared error: sse / totalWeights. Zero on an empty stream.
Unbiased sample standard deviation: sqrt([sampleVariance]).
Unbiased sample variance: [sst] / ([totalWeights] - 1). Zero when totalWeights <= 1.
Number of com.eignex.kumulant.core.RegressionStat.update calls absorbed; useful as a bookkeeping counter for learning-rate decay or retraining cadence.
Cumulative observation weight folded in.
Fitted weight per feature, indexed by the same i as the input x[i].
Functions
Linear predictor eta = bias + x . weights, before the inverse link.
Mean response: link.invMean(linearPredictor(x)). For Link.Identity this is the linear predictor itself, matching plain linear regression.
bias
linearPredictor
Linear predictor eta = bias + x . weights, before the inverse link.
link
predict
Mean response: link.invMean(linearPredictor(x)). For Link.Identity this is the linear predictor itself, matching plain linear regression.
step
Number of com.eignex.kumulant.core.RegressionStat.update calls absorbed; useful as a bookkeeping counter for learning-rate decay or retraining cadence.
totalWeights
Cumulative observation weight folded in.
weights
Fitted weight per feature, indexed by the same i as the input x[i].