MPTSOptions<T, TInput, TOutput>
Options & Configuration · AiDotNet.MetaLearning.Options
Configuration options for the MPTS (Meta-learning with Progressive Task-Specific adaptation) algorithm.
Inheritance: ModelOptions → MPTSOptions<T, TInput, TOutput>
Implements: IMetaLearnerOptions<T>
How It Works
MPTS groups model parameters into blocks and learns per-block adaptation priorities. High-priority groups are adapted in early inner loop steps, while lower-priority groups are gradually unfrozen as adaptation progresses — a progressive unfreezing strategy that reduces overfitting on small support sets.
Constructors
| Constructor | Summary |
|---|---|
MPTSOptions(IFullModel<T, TInput, TOutput> metaModel) |
Creates options for meta-learning metaModel, with the default settings. |
Properties
| Property | Summary |
|---|---|
IEpisodicDataLoader<T, TInput, TOutput> DataLoader { get; set; } |
Episodic data loader that supplies the meta-training tasks; null when tasks are passed to training directly. |
IFullModel<T, TInput, TOutput> MetaModel { get; set; } |
The model whose parameters the meta-learner trains to adapt quickly to new tasks. |
IGradientBasedOptimizer<T, TInput, TOutput> InnerOptimizer { get; set; } |
Must stay null: this algorithm takes no plain gradient inner step (it adapts without one, or by its own update rule), so a supplied optimizer is rejected when the learner is built. |
IGradientBasedOptimizer<T, TInput, TOutput> MetaOptimizer { get; set; } |
Optimizer for the meta-update. |
ILossFunction<T> LossFunction { get; set; } |
Loss function for meta-training; null uses the default multi-class classification loss. |
bool EnableCheckpointing { get; set; } |
|
bool UseFirstOrder { get; set; } |
Whether to use the first-order approximation of the meta-gradient. |
double GroupRegWeight { get; set; } |
L2 regularization weight between groups to encourage coherent adaptation. |
double InnerLearningRate { get; set; } |
|
double OuterLearningRate { get; set; } |
|
double PriorityDecayRate { get; set; } |
Rate at which group activation decays from high to low priority. |
double? GradientClipThreshold { get; set; } |
|
int AdaptationSteps { get; set; } |
|
int CheckpointFrequency { get; set; } |
|
int EvaluationFrequency { get; set; } |
|
int EvaluationTasks { get; set; } |
|
int MetaBatchSize { get; set; } |
|
int NumMetaIterations { get; set; } |
|
int NumParamGroups { get; set; } |
Number of parameter groups for progressive adaptation. |
int? RandomSeed { get; set; } |
Methods
| Method | Summary |
|---|---|
IMetaLearnerOptions<T> Clone() |
|
bool IsValid() |