Table of Contents

Class DataPoint<T, TInput, TOutput>

Namespace
AiDotNet.ContinualLearning.Memory
Assembly
AiDotNet.dll

Represents a single data point with input and output.

public class 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>
Derived
Inherited Members

Remarks

For Beginners: A data point represents one example from the training data. It contains the input (what we show the model), the expected output (what we want it to predict), and a task ID (which task this example belongs to).

Constructors

DataPoint(TInput, TOutput, int)

Initializes a new data point.

public DataPoint(TInput input, TOutput output, int taskId)

Parameters

input TInput

The input data.

output TOutput

The expected output data.

taskId int

The task identifier.

Properties

AddedAt

Gets or sets the timestamp when this data point was added.

public DateTime? AddedAt { get; init; }

Property Value

DateTime?

Input

Gets the input data.

public TInput Input { get; }

Property Value

TInput

Metadata

Gets or sets additional metadata about this data point.

public IReadOnlyDictionary<string, object>? Metadata { get; init; }

Property Value

IReadOnlyDictionary<string, object>

Output

Gets the expected output data.

public TOutput Output { get; }

Property Value

TOutput

TaskId

Gets the task identifier this data point belongs to.

public int TaskId { get; }

Property Value

int

Methods

ToString()

Returns a string representation of the data point.

public override string ToString()

Returns

string