GithubHelp home page GithubHelp logo

alekxos / fastmaml Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 72 KB

Lightweight but powerful PyTorch 1.3 implementation of MAML (model-agnostic meta learning) from the 2017 paper by Finn et al.

License: MIT License

Python 100.00%

fastmaml's Introduction

FastMAML

Lightweight but powerful PyTorch 1.3 implementation of MAML (model-agnostic meta learning) from the 2017 paper by Finn et al.

Dataset

This model uses the Omniglot dataset by default. To download it, go to https://github.com/tristandeleu/ntm-one-shot/tree/master/data/omniglot and follow the instructions. By default, this implementation assumes a 28x28 size, but this can be changed.

Running

This implementation comes with a variety of configurable parameters; these can be changed in main.py. To run with the default settings, just install the requirements in requirements.txt and run python main.py.

Output

Output is saved by default to the ./output directory, which will be created if none exists. For a given training run, the model's state is saved every 10 epochs but only the last three saves are retained. The model tracks the performance on the meta-training set at every interval, in addition to the meta-validation set, and saves these results as .npy files in the meta_train and meta_validation folders.

Results

Meta-training results on the Omniglot dataset over 5,000 iterations, smoothed over an interval of 10:

Alt text

fastmaml's People

Contributors

alekxos avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.