IParameterTopologySource
Interfaces · AiDotNet.Models.Parameters
Persists the non-numeric structure that gives a variable parameter surface its shape.
Known implementations: KeyedScalarCollectionParameterSource<T, TKey>, NestedKeyedScalarCollectionParameterSource<T, TOuterKey, TInnerKey>, QTableEntriesParameterSource<T>, QTableParameterSource<T>, ValueTableParameterSource<T>
How It Works
A flat parameter vector can restore values only after the destination owns the same slots. Sparse
tables are the canonical example: their state/action keys are topology, while the values stored at
those keys are parameters. Model bases write this small topology block before restoring the vector,
keeping values single-owned by IParameterSource.
Methods
| Method | Summary |
|---|---|
void ReadParameterTopology(BinaryReader reader) |
Recreates this source’s parameter slots without restoring their numeric values. |
void WriteParameterTopology(BinaryWriter writer) |
Writes the keys/shapes required to recreate this source’s parameter slots. |