An open API service indexing awesome lists of open source software.

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

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:
![MAML](https://github.com/JosephKJ/MAML-and-Reptile/blob/master/results/maml.png "MAML")

Reptile:
![Reptile](https://github.com/JosephKJ/MAML-and-Reptile/blob/master/results/reptile.png "Reptile")

### Adapted from
[John Schulman's GIST](https://gist.github.com/joschu/f503500cda64f2ce87c8288906b09e2d#file-reptile-sinewaves-demo-py)