IParameterizable<T, TInput, TOutput>
Interfaces · AiDotNet.Interfaces
Interface for models that have optimizable parameters.
Implements: IParameterSource<T>
Known implementations: IFullModel<T, TInput, TOutput>
How It Works
GetParameters, SetParameters and ParameterCount come from
IParameterSource – the minimal contract shared with components that
own parameters without being full models (encoders, projectors, layers).
Properties
| Property | Summary |
|---|---|
bool SupportsParameterInitialization { get; } |
Gets whether this model supports direct parameter-based initialization. |
Methods
| Method | Summary |
|---|---|
IEnumerable<Tensor<T>> GetParameterChunks() |
Yields the model’s persistent state as bounded tensors, in the exact order used by GetParameters. |
IFullModel<T, TInput, TOutput> WithParameters(Vector<T> parameters) |
Creates a new instance with the specified parameters. |
Vector<T> SanitizeParameters(Vector<T> parameters) |
Sanitizes random parameters to satisfy model-specific constraints. |
void SetParameterChunks(IEnumerable<Tensor<T>> chunks) |
Streaming counterpart to SetParameters: assigns the model’s persistent state from a sequence of chunks supplied in the SAME order GetParameterChunks yields them, WITHOUT ever materializing a flat Vector<T> of all parameters. |