MetaLearnerOptionsBuilder<T>
Helpers & Utilities · AiDotNet.MetaLearning
Fluent builder for MetaLearnerOptionsBase.
Constructors
| Constructor | Summary |
|---|---|
MetaLearnerOptionsBuilder() |
Methods
| Method | Summary |
|---|---|
MetaLearnerOptionsBase<T> Build() |
Builds the options instance. |
MetaLearnerOptionsBuilder<T> WithAdaptationSteps(int steps) |
Sets the number of adaptation steps. |
MetaLearnerOptionsBuilder<T> WithCheckpointing(bool enabled, int frequency) |
Configures checkpointing settings. |
MetaLearnerOptionsBuilder<T> WithEvaluation(int tasks, int frequency) |
Configures evaluation settings. |
MetaLearnerOptionsBuilder<T> WithFirstOrder(bool useFirstOrder) |
Enables first-order approximation (FOMAML). |
MetaLearnerOptionsBuilder<T> WithGradientClipping(double? threshold) |
Sets the gradient clipping threshold. |
MetaLearnerOptionsBuilder<T> WithInnerLearningRate(double rate) |
Sets the inner loop learning rate. |
MetaLearnerOptionsBuilder<T> WithMetaBatchSize(int size) |
Sets the meta-batch size. |
MetaLearnerOptionsBuilder<T> WithNumMetaIterations(int iterations) |
Sets the number of meta-iterations. |
MetaLearnerOptionsBuilder<T> WithOuterLearningRate(double rate) |
Sets the outer loop learning rate. |
MetaLearnerOptionsBuilder<T> WithRandomSeed(int? seed) |
Sets the random seed for reproducibility. |