Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
TensorFlow 2.0 Quick Start Guide

You're reading from  TensorFlow 2.0 Quick Start Guide

Product type Book
Published in Mar 2019
Publisher Packt
ISBN-13 9781789530759
Pages 196 pages
Edition 1st Edition
Languages
Author (1):
Tony Holdroyd Tony Holdroyd
Profile icon Tony Holdroyd

Table of Contents (15) Chapters

Preface Section 1: Introduction to TensorFlow 2.00 Alpha
Introducing TensorFlow 2 Keras, a High-Level API for TensorFlow 2 ANN Technologies Using TensorFlow 2 Section 2: Supervised and Unsupervised Learning in TensorFlow 2.00 Alpha
Supervised Machine Learning Using TensorFlow 2 Unsupervised Learning Using TensorFlow 2 Section 3: Neural Network Applications of TensorFlow 2.00 Alpha
Recognizing Images with TensorFlow 2 Neural Style Transfer Using TensorFlow 2 Recurrent Neural Networks Using TensorFlow 2 TensorFlow Estimators and TensorFlow Hub Converting from tf1.12 to tf2
Other Books You May Enjoy

TensorFlow Estimators and TensorFlow Hub

This chapter is divided into two sections, but the technologies here are related. First, we will look at how TensorFlow Estimators provide a simple, high-level API for TensorFlow, and secondly, we will look at how TensorFlow Hub contains modules that we can make use of in our own applications.

In this chapter, we will cover the following main topics:

  • TensorFlow Estimators
  • TensorFlow Hub

TensorFlow Estimators

tf.estimator is a high-level API for TensorFlow. It is used to simplify machine learning programming by providing the means for the straightforward training, evaluation, predicting, and exporting of models for serving.

Estimators confer many advantages on the TensorFlow developer. It is easier and more intuitive to develop models with Estimators than with low-level APIs. In particular, the same model can be run on a local machine or on a distributed multi-server system. The model is also agnostic to the processor it finds itself on, that is, either CPUs, GPUs, or TPUs. Estimators also simplify the development process by making it easier for model developers to share implementations and, being built on Keras layers, make customization simpler.

Estimators take care of all of the background plumbing that goes into working with a TensorFlow model. They support...

TensorFlow Hub

TensorFlow Hub is a software library. Its purpose is to provide reusable components, known as modules, that can be leveraged in contexts other than the original context in which they were developed. By a module, we mean a self-contained piece of a TensorFlow graph, along with its weights, which can be reused across other, similar tasks.

IMDb (database of movie reviews)

In this section, we will examine an application based on one from Google that analyzes a subset of the IMDb of movie reviews in what is termed sentiment analysis. The subset is hosted by Stanford and contains reviews of each movie, together with a sentiment on a positivity scale of 1 to 4 (bad) and 7 to 10 (good). The problem is determining the...

Summary

In this chapter, we looked at an Estimator for training the fashion dataset. We saw how Estimators provide a simple, intuitive API for TensorFlow.

We then looked at another application, this time for the sentiment classification of reviews of movies in the IMDb. We saw how TensorFlow Hub provides us with text embeddings, that is, vectors for words, which is where words with similar meanings have similar vectors.

In this book, we have seen an overview of TensorFlow 2.0 alpha.

lock icon The rest of the chapter is locked
You have been reading a chapter from
TensorFlow 2.0 Quick Start Guide
Published in: Mar 2019 Publisher: Packt ISBN-13: 9781789530759
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}