Book Image

Hands-On Meta Learning with Python

By : Sudharsan Ravichandiran
Book Image

Hands-On Meta Learning with Python

By: Sudharsan Ravichandiran

Overview of this book

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.
Table of Contents (17 chapters)
Title Page
Dedication
About Packt
Contributors
Preface
Index

Chapter 4. Relation and Matching Networks Using TensorFlow

In the last chapter, we learned about prototypical networks and how variants of prototypical networks, such as Gaussian prototypical and semi-prototypical networks, are used for one-shot learning. We have seen how prototypical networks make use of embeddings to perform classification tasks.

In this chapter, we will learn about relation networks and matching networks. First, we will see what a relation network is and how it is used in one-shot, few-shot, and zero-shot learning settings, after which we will learn how to build a relation network using TensorFlow. Later in this chapter, we will learn about matching networks and how they are used in few-shot learning. We will also see different types of embedding functions used in matching networks. At the end of this chapter, we will see how to build matching networks in Tensorflow.

In this chapter, we will learn about the following:

  • Relation networks
  • Relation networks in one-shot, few-shot...