Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmalli committed Mar 19, 2021
1 parent 44f2713 commit ce7eedc
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,13 @@ python3 src/run.py train.pl_trainer.gpus=1

### Omniglot (5-way 5-shot)

Few-shot learning using this dataset is easy task to overfit or learn for
MAML algorithm.

<table class="tg">
<thead>
<tr>
<th colspan="3"></th>
<th colspan="3"></th>
<th colspan="2">Metatrain</th>
<th colspan="2">Metavalidation</th>
</tr>
Expand All @@ -75,19 +78,19 @@ python3 src/run.py train.pl_trainer.gpus=1
<td >MAML</td>
<td >OmniConv</td>
<td >1</td>
<td ></td>
<td ></td>
<td ></td>
<td ></td>
<td >0.992</td>
<td >0.992</td>
<td >0.98</td>
<td >0.98</td>
</tr>
<tr>
<td >MAML</td>
<td >OmniConv</td>
<td >5</td>
<td ></td>
<td ></td>
<td ></td>
<td ></td>
<td >1.0</td>
<td >1.0</td>
<td >1.0</td>
<td >1.0</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -157,6 +160,13 @@ Run the experiment as follows:
python3 src/run.py data=miniimagenet
```


## Implementing a different meta learning algorithm

If you plant to implement a new variant of MAML algorithm (for example
MAML++) you can start by extending [default lightning module](https://github.com/rcmalli/lightning-maml/blob/44f271380bb6efc925a9070abe2ec4d0f7d88ef3/src/pl/model.py#L77) and its [step](https://github.com/rcmalli/lightning-maml/blob/44f271380bb6efc925a9070abe2ec4d0f7d88ef3/src/pl/model.py#L100-L150)
function.

## Notes

There are few required modifications run meta-learning algorithm using
Expand Down

0 comments on commit ce7eedc

Please sign in to comment.