learnables / learn2learn

A PyTorch Library for Meta-learning Research
http://learn2learn.net
MIT License
2.66k stars 353 forks source link

Fix maml_toy example #325

Closed DubiousCactus closed 1 year ago

DubiousCactus commented 2 years ago

Description

The MAML Toy example examples/maml_toy.py does not run due to a sigma parameter being sampled from a Normal distribution. That sigma is used to parameterise another Normal distribution, hence must be positive.

Contribution Checklist

If your contribution modifies code in the core library (not docs, tests, or examples), please fill the following checklist.

seba-1511 commented 1 year ago

Looks good, sorry for the delay!