DiscoRLOptions<T, TInput, TOutput>
Options & Configuration · AiDotNet.MetaLearning.Options
Configuration options for DiscoRL: Discovery-based meta-RL with skill discovery.
Inheritance: ModelOptions → DiscoRLOptions<T, TInput, TOutput>
Implements: IMetaLearnerOptions<T>
How It Works
DiscoRL discovers reusable “skills” (parameter subspaces) during meta-training and combines them for new task adaptation. Each skill corresponds to a low-rank direction in parameter space. A skill selector (gating network) chooses which skills to activate for each task based on early gradient signals.
Constructors
| Constructor | Summary |
|---|---|
DiscoRLOptions(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 InnerLearningRate { get; set; } |
|
double OuterLearningRate { get; set; } |
|
double SelectionTemperature { get; set; } |
Temperature for skill selection softmax. |
double SkillEntropyBonus { get; set; } |
Entropy bonus to encourage diverse skill usage. |
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 NumSkills { get; set; } |
Number of discoverable skills. |
int SkillRank { get; set; } |
Rank of each skill direction in parameter space. |
int? RandomSeed { get; set; } |
Methods
| Method | Summary |
|---|---|
IMetaLearnerOptions<T> Clone() |
|
bool IsValid() |