An error is being thrown because maml_adapt expects the above 2 arguments which are not being passed.
fas can be included into OptiTrainer as this parameter is common across many Optimization based approaches, but maml_lr can't be included as it is specific to only MAML.
Hence a different approach must be used to allow it as a parameter.
https://github.com/SforAiDl/jeta/blob/e55bf83c9f89c662872f50a1ef8885c1085403ef/jeta/maml.py#L14-L15
The above lines cause an error while running
MAML
using OptiTrainerOptiTrainer
calls the functionmaml_adapt
and it's parameters are passed inOptiTrainer
itself.An error is being thrown because
maml_adapt
expects the above 2 arguments which are not being passed.fas
can be included intoOptiTrainer
as this parameter is common across many Optimization based approaches, butmaml_lr
can't be included as it is specific to onlyMAML
. Hence a different approach must be used to allow it as a parameter.