GithubHelp home page GithubHelp logo

sudharsan13296 / hands-on-meta-learning-with-python Goto Github PK

View Code? Open in Web Editor NEW
1.2K 40.0 359.0 27.99 MB

Learning to Learn using One-Shot Learning, MAML, Reptile, Meta-SGD and more with Tensorflow

Home Page: https://www.amazon.com/Hands-Meta-Learning-Python-algorithms-ebook/dp/B07KJJHYKF/ref=sr_1_1?ie=UTF8&qid=1543222179&sr=8-1&keywords=meta+learning+hands+on

Jupyter Notebook 100.00%
metalearning maml reptile meta-sgd tensorflow ntm mann one-shot-learning few-shot-learning matching-networks

hands-on-meta-learning-with-python's Introduction

Learning to Learn using One-Shot Learning, MAML, Reptile, Meta-SGD and more

About the book

Book Cover

Meta learning is an exciting research trend in machine learning, which enables a model to understand the learning process. Unlike other ML paradigms, with meta learning you can learn from small datasets faster.

Hands-On Meta Learning with Python starts by explaining the fundamentals of meta learning and helps you understand the concept of learning to learn. You will delve into various one-shot learning algorithms, like siamese, prototypical, relation and memory-augmented networks by implementing them in TensorFlow and Keras. As you make your way through the book, you will dive into state-of-the-art meta learning algorithms such as MAML, Reptile, and CAML. You will then explore how to learn quickly with Meta-SGD and discover how you can perform unsupervised learning using meta learning with CACTUs. In the concluding chapters, you will work through recent trends in meta learning such as adversarial meta learning, task agnostic meta learning, and meta imitation learning.

By the end of this book, you will be familiar with state-of-the-art meta learning algorithms and able to enable human-like cognition for your machine learning models.

Get the book


Check out my Deep Reinforcement Learning Repo here.

Awesome Meta Learning Awesome

Check the curated list of Meta Learning papers, code, books, blogs, videos, datasets and other resources here.

Table of contents

  • 1.1. What is Meta Learning?
  • 1.2. Meta Learning and Few-Shot
  • 1.3. Types of Meta Learning
  • 1.4. Learning to Learn Gradient Descent by Gradient Descent
  • 1.5. Optimization As a Model for Few-Shot Learning
  • 9.1. Task Agnostic Meta Learning
  • 9.2. TAML Algorithm
  • 9.3. Meta Imitation Learning
  • 9.4. MIL Algorithm
  • 9.5. CACTUs
  • 9.6. Task Generation using CACTUs
  • 9.7. Learning to Learn in the Concept Space

hands-on-meta-learning-with-python's People

Contributors

sudharsan13296 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hands-on-meta-learning-with-python's Issues

Wrong directory path in the prototypical network demo notebook with omniglot

The directory path in cell 13 of prototypical network omniglot demo (link) is wrong, it is missing "images" directory. As a result, the output of training is wrong (as can be seen in the notebook, the model is not learning at all during training since the train_data are all zero arrays due to it failing to load from the wrong directory. I was able to train the model correctly after fixing the wrong directory path in cell 13

Book availability

Hello @sudharsan13296,

I ordered your book " Hands On Meta Learning With-Python" one month ago, but I haven't been delivered yet. Unfortunately this github version is still missing some sections. Do you have any idea about the book finalization and availability to the public?

Best Regards,

Weights computation for MAML in RL Setting

Hello @sudharsan13296

Thank you for this very interesting work.

I have a question regarding section 6.3 "MAML in Supervised Learning".
While in Supervised learning setting, Step 3: (inner loop) is quite obvious, I'm still not sure how to implement it for Reinforcement learning setting. In fact Di consists of K trajectories each one of horizon H. How should theta'i be computed?

A- For each of the Ks trajectories?
B- At the end of the all Ks trajectories training?

In both cases, do you have an idea on how should gradient-descent/losses be operated (eventually aggregated) to obtain theta'i?

Best Regards,

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.