Skip to Content
Hands-On Meta Learning with Python
book

Hands-On Meta Learning with Python

by Sudharsan Ravichandiran
December 2018
Beginner to intermediate
226 pages
7h 59m
English
Packt Publishing
Content preview from Hands-On Meta Learning with Python

Building gradient agreement algorithm with MAML

In the last section, we saw how the gradient agreement algorithm works. We saw how gradient agreement adds weights to the gradients implying their importance. Now, we'll see how to use our gradient agreement algorithm with MAML by coding them from scratch using NumPy. For better understanding, we'll consider a simple binary classification task. We'll randomly generate our input data, train it with a simple single-layer neural network, and try to find the optimal parameter θ.

Now we'll see step by step exactly how to do this.

You can also check out the whole code, available as a Jupyter Notebook here: https://github.com/sudharsan13296/Hands-On-Meta-Learning-With-Python/blob/master/08.%20Gradient%20Agreement%20As%20An%20Optimization%20Objective/8.4%20Building%20Gradient%20Agreement%20Algorithm%20with%20MAML.ipynb ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On One-shot Learning with Python

Hands-On One-shot Learning with Python

Shruti Jadon, Ankush Garg
Hands-On Transfer Learning with Python

Hands-On Transfer Learning with Python

Dipanjan Sarkar, Raghav Bali, Tamoghna Ghosh
Python Deep Learning Projects

Python Deep Learning Projects

Matthew Lamons, Rahul Kumar, Abhishek Nagaraja
Advanced Deep Learning with Keras

Advanced Deep Learning with Keras

Rowel Atienza, Neeraj Verma, Valerio Maggio

Publisher Resources

ISBN: 9781789534207Supplemental Content