https://github.com/josephkj/pytorch-maml-and-reptile
MAML and Reptile sine wave regression example in PyTorch
https://github.com/josephkj/pytorch-maml-and-reptile
maml meta-learning meta-learning-algorithms pytorch pytorch-implementation reptile
Last synced: about 1 month ago
JSON representation
MAML and Reptile sine wave regression example in PyTorch
- Host: GitHub
- URL: https://github.com/josephkj/pytorch-maml-and-reptile
- Owner: JosephKJ
- License: mit
- Created: 2020-01-25T12:16:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-26T06:38:30.000Z (over 5 years ago)
- Last Synced: 2025-03-21T11:50:37.837Z (about 1 month ago)
- Topics: maml, meta-learning, meta-learning-algorithms, pytorch, pytorch-implementation, reptile
- Language: Python
- Homepage: https://josephkj.in
- Size: 93.8 KB
- Stars: 18
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MAML and Reptile in PyTorch
This repository includes the Sine wave experiment with MAML and Reptile.
### Run
```shell script
python main.py --run=MAML
python main.py --run=Reptile
```### Tested on
```shell script
Python 3.7.4
PyTorch 1.3.1
```### Results
```shell script
Loss after 30000 iterations
---------------------------
MAML: 0.058
REPTILE: 0.048
```
MAML:
Reptile:
### Adapted from
[John Schulman's GIST](https://gist.github.com/joschu/f503500cda64f2ce87c8288906b09e2d#file-reptile-sinewaves-demo-py)