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
TThe numeric type used for calculations.
TInputThe input data type.
TOutputThe 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
inputTInputThe input data.
outputTOutputThe expected output data.
taskIdintThe task identifier.
Properties
AddedAt
Gets or sets the timestamp when this data point was added.
public DateTime? AddedAt { get; init; }
Property Value
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
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
Methods
ToString()
Returns a string representation of the data point.
public override string ToString()