-
Notifications
You must be signed in to change notification settings - Fork 68
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
Tiny issues w.r.t data sampling in few-shot iMAML example #417
Comments
thanks @zaccharieramzi ! Your fixes would be most welcomed. I was actually concerned on why the example was so slow and not getting great results. This settles it then! Can you send a pull request for the changes? Thanks again! |
Yes I think on the slowness the problem is the for loop in the loss computation. I have some pressing things on my plate atm, in like 2 weeks I can definitely send a PR. |
Sounds great, thanks!
…On Thu, Mar 30, 2023, 15:55 Zaccharie Ramzi ***@***.***> wrote:
Yes I think on the slowness the problem is the for loop in the loss
computation.
I also had implemented it via a for loop, but a vmap is much more
efficient, it just means that the parameters should be duplicated at the
leaf level (if you consider them a pytree) and not at the tree level.
I have some pressing things on my plate atm, in like 2 weeks I can
definitely send a PR.
—
Reply to this email directly, view it on GitHub
<#417 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACDZB26ZIP3F3MXOU37CXLW6WGELANCNFSM6AAAAAAWK4JB4E>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I was looking through the iMAML few-shot example , and noticed some tiny mistakes:
y_train = jnp.sin(phase * x_train) * amplitude
instead ofy_train = jnp.sin(x_train - phase) * amplitude
It turns out that I was also working on reimplementing MAML (not implicit) but with jaxopt for the unrolled gradient and my results on the sinusoid dataset match those of the paper. I'd be happy to implement the tiny changes, but also add the MAML version. I saw you implemented the iMAML example, wdyt @fabianp ?
The text was updated successfully, but these errors were encountered: