Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAML is expecting more parameters than being passed #41

Open
AnirudhM1 opened this issue Aug 23, 2022 · 1 comment
Open

MAML is expecting more parameters than being passed #41

AnirudhM1 opened this issue Aug 23, 2022 · 1 comment

Comments

@AnirudhM1
Copy link
Contributor

jeta/jeta/maml.py

Lines 14 to 15 in e55bf83

maml_lr: Float,
fas: Integer,

The above lines cause an error while running MAML using OptiTrainer


OptiTrainer calls the function maml_adapt and it's parameters are passed in OptiTrainer itself.

Note: maml_adapt is passed as a parameter to OptiTrainer as adapt_fn

theta = adapt_fn(params, apply_fn, loss_fn, support_set)

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.

@veds12
Copy link
Member

veds12 commented Aug 24, 2022

Looks like a bug introduced in #39.
We can add kwargs in OptiTrainer. That will solve the problem of passing maml_lr.

@AnirudhM1 AnirudhM1 changed the title MAML is expecting more parameter than being passed MAML is expecting more parameters than being passed Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants