Interface IAugmentationFactory<T, TData>
- Namespace
- AiDotNet.Augmentation
- Assembly
- AiDotNet.dll
Factory for creating augmentations from configuration.
public interface IAugmentationFactory<T, TData>
Type Parameters
TThe numeric type for calculations.
TDataThe data type being augmented.
Remarks
Enables dynamic augmentation creation from serialized configurations.
Properties
RegisteredTypes
Gets all registered augmentation types.
IReadOnlyList<string> RegisteredTypes { get; }
Property Value
Methods
Create(string, IDictionary<string, object>)
Creates an augmentation from type name and parameters.
IAugmentation<T, TData> Create(string typeName, IDictionary<string, object> parameters)
Parameters
typeNamestringThe augmentation type name.
parametersIDictionary<string, object>The parameters for the augmentation.
Returns
- IAugmentation<T, TData>
The created augmentation.
GetSearchSpace(string)
Gets the search space for an augmentation type.
AugmentationSearchSpace GetSearchSpace(string typeName)
Parameters
typeNamestringThe augmentation type name.
Returns
- AugmentationSearchSpace
The search space definition.
Register(string, Func<IDictionary<string, object>, IAugmentation<T, TData>>)
Registers a custom augmentation type.
void Register(string typeName, Func<IDictionary<string, object>, IAugmentation<T, TData>> factory)
Parameters
typeNamestringThe type name.
factoryFunc<IDictionary<string, object>, IAugmentation<T, TData>>The factory function.