Interface IAugmentationPolicy<T, TData>
- Namespace
- AiDotNet.Augmentation
- Assembly
- AiDotNet.dll
Interface for composable augmentation policies.
public interface IAugmentationPolicy<T, TData> : IAugmentationPolicy
Type Parameters
TThe numeric type for calculations.
TDataThe data type being augmented.
- Inherited Members
Remarks
Policies define collections of augmentations and their application strategies.
Properties
Augmentations
Gets the augmentations in this policy.
IList<IAugmentation<T, TData>> Augmentations { get; }
Property Value
- IList<IAugmentation<T, TData>>
Methods
Apply(TData, AugmentationContext<T>?)
Applies the policy to input data.
TData Apply(TData data, AugmentationContext<T>? context = null)
Parameters
dataTDataThe input data.
contextAugmentationContext<T>The augmentation context.
Returns
- TData
The augmented data.
GetConfiguration()
Gets the parameters of this policy for serialization.
IDictionary<string, object> GetConfiguration()
Returns
- IDictionary<string, object>
A dictionary of policy configuration.