Class ExperienceDataPoint<T, TInput, TOutput>
- Namespace
- AiDotNet.ContinualLearning.Memory
- Assembly
- AiDotNet.dll
Alias for DataPoint used in experience replay contexts.
public class ExperienceDataPoint<T, TInput, TOutput> : DataPoint<T, TInput, TOutput>
Type Parameters
TThe numeric type used for calculations.
TInputThe input data type.
TOutputThe output data type.
- Inheritance
-
DataPoint<T, TInput, TOutput>ExperienceDataPoint<T, TInput, TOutput>
- Inherited Members
Remarks
For Beginners: This is an alias for DataPoint that emphasizes its use in experience replay for continual learning.
Constructors
ExperienceDataPoint(TInput, TOutput, int)
Initializes a new experience data point.
public ExperienceDataPoint(TInput input, TOutput output, int taskId)
Parameters
inputTInputThe input data.
outputTOutputThe expected output data.
taskIdintThe task identifier.
Methods
FromDataPoint(DataPoint<T, TInput, TOutput>)
Creates an ExperienceDataPoint from an existing DataPoint.
public static ExperienceDataPoint<T, TInput, TOutput> FromDataPoint(DataPoint<T, TInput, TOutput> dataPoint)
Parameters
dataPointDataPoint<T, TInput, TOutput>The data point to convert.
Returns
- ExperienceDataPoint<T, TInput, TOutput>
A new ExperienceDataPoint with the same data.