Table of Contents

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

T

The numeric type used for calculations.

TInput

The input data type.

TOutput

The 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

input TInput

The input data.

output TOutput

The expected output data.

taskId int

The 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

dataPoint DataPoint<T, TInput, TOutput>

The data point to convert.

Returns

ExperienceDataPoint<T, TInput, TOutput>

A new ExperienceDataPoint with the same data.