Interface IMetaLearningTask<T, TInput, TOutput>
- Namespace
- AiDotNet.Interfaces
- Assembly
- AiDotNet.dll
Represents a single meta-learning task for few-shot learning.
public interface IMetaLearningTask<T, TInput, TOutput>
Type Parameters
TThe numeric data type used for calculations (e.g., float, double).
TInputThe input data type (e.g., Matrix<T>, Tensor<T>, double[]).
TOutputThe output data type (e.g., Vector<T>, Tensor<T>, double[]).
Properties
Metadata
Gets the additional metadata about the task.
Dictionary<string, object>? Metadata { get; }
Property Value
Name
Gets an optional name or identifier for the task.
string? Name { get; }
Property Value
NumQueryPerClass
Gets the number of query examples per class.
int NumQueryPerClass { get; }
Property Value
Remarks
The number of examples in the query set for each class. Used for evaluating performance after adaptation.
NumShots
Gets the number of shots (examples per class) in the support set.
int NumShots { get; }
Property Value
Remarks
In N-way K-shot learning, this represents the K (number of examples per class). For example, in 5-way 1-shot learning, NumShots = 1.
NumWays
Gets the number of ways (classes) in this task.
int NumWays { get; }
Property Value
Remarks
In N-way K-shot learning, this represents the N (number of classes per task). For example, in 5-way 1-shot learning, NumWays = 5.
QueryInput
Gets the input features for the query set.
TInput QueryInput { get; }
Property Value
- TInput
QueryOutput
Gets the target labels for the query set.
TOutput QueryOutput { get; }
Property Value
- TOutput
QuerySetX
Gets the input features for the query set (alias for QueryInput).
TInput QuerySetX { get; }
Property Value
- TInput
QuerySetY
Gets the target labels for the query set (alias for QueryOutput).
TOutput QuerySetY { get; }
Property Value
- TOutput
SupportInput
Gets the input features for the support set.
TInput SupportInput { get; }
Property Value
- TInput
SupportOutput
Gets the target labels for the support set.
TOutput SupportOutput { get; }
Property Value
- TOutput
SupportSetX
Gets the input features for the support set (alias for SupportInput).
TInput SupportSetX { get; }
Property Value
- TInput
SupportSetY
Gets the target labels for the support set (alias for SupportOutput).
TOutput SupportSetY { get; }
Property Value
- TOutput
TaskId
Gets or sets an optional identifier for the task.
int? TaskId { get; set; }
Property Value
- int?