RegressionStatGroup
StatGroup variant over regression inputs, so a schema's regression entries have a home.
Without it the declarator was reachable but unusable: every other group filters the schema by modality with mapNotNull, so a regression entry was silently skipped and the failure surfaced only as a missing key at read time.
Every entry must expect the same feature width, since one update fans out to all of them.
Constructors
RegressionStatGroup
Properties
featureSize
Number of features expected in x on each update. Mismatched lengths throw.
Functions
create
Create an independent accumulator at the configured baseline. A null concurrency preserves this accumulator's mode; a non-null value overrides it. Modality subtypes narrow the return type to preserve the input shape.
Fold a compatible snapshot values into this accumulator at timestampNanos. Implementations document whether the combine is exact or approximate and which state the snapshot omits. The source accumulator is unaffected.
Return the current result evaluated at timestampNanos. Time-independent statistics ignore the timestamp. Reading does not add an observation.
Restore the configured baseline, including any prior seed. Preserves the configuration and concurrency.
Convenience overload that wraps x as a DenseVector.
Timestamped convenience overload that wraps x as a DenseVector.
Record the pair (x, y) with weight at timestampNanos.