NestedKeyedScalarCollectionParameterSource<T, TOuterKey, TInnerKey>
Models & Types · AiDotNet.Models.Parameters
A two-level scalar dictionary exposed in canonical outer- and inner-key order.
Implements: IParameterLayoutSource, IParameterSource<T>, IParameterTopologySource
How It Works
Tabular reinforcement-learning agents commonly store a state dictionary whose values are action dictionaries. Both key levels are part of the durable identity, so sparse or ragged tables round-trip without shifting later values onto a different state or action.
Constructors
| Constructor | Summary |
|---|---|
NestedKeyedScalarCollectionParameterSource(Func<IDictionary<TOuterKey, Dictionary<TInnerKey, T>>> get) |
Creates a write-through source over the nested dictionary returned by get. |
Properties
| Property | Summary |
|---|---|
long ParameterCount { get; } |
Methods
| Method | Summary |
|---|---|
IReadOnlyList<ParameterSlotDescriptor> GetParameterLayout() |
|
Vector<T> GetParameters() |
|
void ReadParameterTopology(BinaryReader reader) |
|
void SetParameters(Vector<T> parameters) |
|
void WriteParameterTopology(BinaryWriter writer) |