Book Image

Hands-On One-shot Learning with Python

By : Shruti Jadon, Ankush Garg
Book Image

Hands-On One-shot Learning with Python

By: Shruti Jadon, Ankush Garg

Overview of this book

One-shot learning has been an active field of research for scientists trying to develop a cognitive machine that mimics human learning. With this book, you'll explore key approaches to one-shot learning, such as metrics-based, model-based, and optimization-based techniques, all with the help of practical examples. Hands-On One-shot Learning with Python will guide you through the exploration and design of deep learning models that can obtain information about an object from one or just a few training samples. The book begins with an overview of deep learning and one-shot learning and then introduces you to the different methods you can use to achieve it, such as deep learning architectures and probabilistic models. Once you've got to grips with the core principles, you'll explore real-world examples and implementations of one-shot learning using PyTorch 1.x on datasets such as Omniglot and MiniImageNet. Finally, you'll explore generative modeling-based methods and discover the key considerations for building systems that exhibit human-level intelligence. By the end of this book, you'll be well-versed with the different one- and few-shot learning methods and be able to use them to build your own deep learning models.
Table of Contents (11 chapters)
1
Section 1: One-shot Learning Introduction
3
Section 2: Deep Learning Architectures
7
Section 3: Other Methods and Conclusion

Overview of probabilistic methods

Humans' conceptual learning tends to differ from machine learning in two major aspects. Consider an example of handwritten digits from a large vocabulary in the following diagram:

Firstly, people tend to learn meaningful information about objects, for example, object boundaries, from just one or a few examples and classify them with high accuracy (refer to the i) part in the preceding diagram). On the other hand, deep learning models need lots of labeled data to achieve human-level performance on tasks such as object recognition.

Secondly, humans learn a vast majority of functions from just one example, for example, creating new characters (refer to the ii) part in the preceding diagram), decomposing objects/characters into various parts and relations (refer to the iii) part in the preceding diagram), and developing new, meaningful concepts...