IVariableLengthParameterSource<T>
Interfaces ยท AiDotNet.Models.Parameters
A component whose width is decided BY the vector it is restored from, not checked against it.
Implements: IParameterSource<T>
Known implementations: ResizableTensorFieldParameterSource<T>, SerializedObjectParameterSource<T>, VariableLengthParameterSource<T>, VectorFieldParameterSource<T>
How It Works
For models that genuinely do not know their own size until they are fitted โ a propensity model has no coefficients yet, a Kaplan-Meier curve has as many points as the data had event times. A fresh instance of one declares zero parameters, and restoring a checkpoint INTO a fresh instance is the whole point of a checkpoint, so a strict length check made every such load throw. The registry gives a component marked this way whatever the fixed-size components leave; at most one may be registered, and it must be last.
Properties
| Property | Summary |
|---|---|
bool CanResizeOnRestore { get; } |
Gets whether this source may learn a different width from the next restore payload. |