TensorFlow Machine Learning Projects
eBook - ePub

TensorFlow Machine Learning Projects

Build 13 real-world projects with advanced numerical computations using the Python ecosystem

Ankit Jain, Armando Fandango, Amita Kapoor

Partager le livre
  1. 322 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

TensorFlow Machine Learning Projects

Build 13 real-world projects with advanced numerical computations using the Python ecosystem

Ankit Jain, Armando Fandango, Amita Kapoor

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Implement TensorFlow's offerings such as TensorBoard, TensorFlow.js, TensorFlow Probability, and TensorFlow Lite to build smart automation projects

Key Features

  • Use machine learning and deep learning principles to build real-world projects
  • Get to grips with TensorFlow's impressive range of module offerings
  • Implement projects on GANs, reinforcement learning, and capsule network

Book Description

TensorFlow has transformed the way machine learning is perceived. TensorFlow Machine Learning Projects teaches you how to exploit the benefits—simplicity, efficiency, and flexibility—of using TensorFlow in various real-world projects. With the help of this book, you'll not only learn how to build advanced projects using different datasets but also be able to tackle common challenges using a range of libraries from the TensorFlow ecosystem.

To start with, you'll get to grips with using TensorFlow for machine learning projects; you'll explore a wide range of projects using TensorForest and TensorBoard for detecting exoplanets, TensorFlow.js for sentiment analysis, and TensorFlow Lite for digit classification.

As you make your way through the book, you'll build projects in various real-world domains, incorporating natural language processing (NLP), the Gaussian process, autoencoders, recommender systems, and Bayesian neural networks, along with trending areas such as Generative Adversarial Networks (GANs), capsule networks, and reinforcement learning. You'll learn how to use the TensorFlow on Spark API and GPU-accelerated computing with TensorFlow to detect objects, followed by how to train and develop a recurrent neural network (RNN) model to generate book scripts.

By the end of this book, you'll have gained the required expertise to build full-fledged machine learning projects at work.

What you will learn

  • Understand the TensorFlow ecosystem using various datasets and techniques
  • Create recommendation systems for quality product recommendations
  • Build projects using CNNs, NLP, and Bayesian neural networks
  • Play Pac-Man using deep reinforcement learning
  • Deploy scalable TensorFlow-based machine learning systems
  • Generate your own book script using RNNs

Who this book is for

TensorFlow Machine Learning Projects is for you if you are a data analyst, data scientist, machine learning professional, or deep learning enthusiast with basic knowledge of TensorFlow. This book is also for you if you want to build end-to-end projects in the machine learning domain using supervised, unsupervised, and reinforcement learning techniques

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que TensorFlow Machine Learning Projects est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  TensorFlow Machine Learning Projects par Ankit Jain, Armando Fandango, Amita Kapoor en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Ciencia de la computaciĂłn et Redes neuronales. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2018
ISBN
9781789132403

Classifying Clothing Images using Capsule Networks

In this chapter, we will learn how to implement capsule networks on the Fashion MNIST dataset. This chapter will cover the inner workings of capsule networks and explain how to implement them in TensorFlow. You will also learn how to evaluate and optimize the model.
We have chosen capsule networks because they have the ability to preserve the spatial relationships of images. Capsule networks were introduced by Geoff Hinton, et al. They published a paper in 2017 that can be found at https://arxiv.org/abs/1710.09829. Capsule networks gained immense popularity within the deep learning community as a new type of neural network.
By the end of this chapter, we will be able to classify clothing using capsule networks after going through the following:
  • Understanding the importance of capsule networks
  • A brief understanding of capsules
  • The routing by agreement algorithm
  • The implementation of the CapsNet architecture for classifying Fashion-MNIST images
  • The limitations of capsule networks

Understanding the importance of capsule networks

Convolutional neural networks (CNNs) form the backbone of all the major breakthroughs in image detection today. CNNs work by detecting the basic features that are present in the lower layers of the network and then proceed to detect the higher level features present in the higher layers of the network. This setup does not contain a pose (translational and rotational) relationship between the lower-level features that make up any complex object.
Imagine trying to identify a face. In this case, just having eyes, nose, and ears in an image can lead a CNN to conclude that it's a face without caring about the relative orientation of the concerned objects. To explain this further, if an image has a nose above the eyes, CNNs still can detect that it's an image. CNNs take care of this problem by using max pooling, which helps increase the field of view for the higher layers. However, this operation is not a perfect solution as we tend to lose valuable information in the image by using it.
As a matter of fact, Hinton himself states the following:
"The pooling operation used in convolutional neural networks is a big mistake and the fact that it works so well is a disaster."
In the paper, Hinton tries to provide an intuition on solving this problem using the inverse graphics approach. For graphics in computers, an image is constructed by using an internal representation of the objects present in the image. This is done using arrays and matrices. This internal representation helps preserve the shape, the orientation, and the object's relative position when compared to all other objects in the image. The software takes this internal representation and publishes the image on the screen using a process known as rendering.
Hinton specifies that the human brain does some sort of inverse graphics. We see an image through our eyes, and then brain our dissects the image and constructs a hierarchical representation of different objects in the image before trying to match them to the existing patterns that we have seen. An interesting observation to note is that humans can identify objects in an image, irrespective of their viewing angle.
He then proceeds to argue that in order to perform classification, it is necessary to preserve the relative orientation and position of different objects in the image (this helps mimic the human capability, as we discussed previously). It's quite intuitive that...

Table des matiĂšres