TensorFlow Machine Learning Cookbook
Table of Contents
TensorFlow Machine Learning Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Piracy
Questions
1. Getting Started with TensorFlow
Introduction
How TensorFlow Works
Getting ready
How to do itâŠ
How it worksâŠ
See also
Declaring Tensors
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Using Placeholders and Variables
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Working with Matrices
Getting ready
How to do itâŠ
How it worksâŠ
Declaring Operations
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing Activation Functions
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Working with Data Sources
Getting ready
How to do itâŠ
How it worksâŠ
See also
Additional Resources
Getting ready
How to do itâŠ
See also
2. The TensorFlow Way
Introduction
Operations in a Computational Graph
Getting ready
How to do itâŠ
How it worksâŠ
Layering Nested Operations
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Working with Multiple Layers
Getting ready
How to do itâŠ
How it worksâŠ
Implementing Loss Functions
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing Back Propagation
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
See also
Working with Batch and Stochastic Training
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Combining Everything Together
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
See also
Evaluating Models
Getting ready
How to do itâŠ
How it worksâŠ
3. Linear Regression
Introduction
Using the Matrix Inverse Method
Getting ready
How to do itâŠ
How it worksâŠ
Implementing a Decomposition Method
Getting ready
How to do itâŠ
How it worksâŠ
Learning The TensorFlow Way of Linear Regression
Getting ready
How to do itâŠ
How it worksâŠ
Understanding Loss Functions in Linear Regression
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing Deming regression
Getting ready
How to do itâŠ
How it worksâŠ
Implementing Lasso and Ridge Regression
Getting ready
How to do itâŠ
How it worksâŠ
There's' moreâŠ
Implementing Elastic Net Regression
Getting ready
How to do itâŠ
How it worksâŠ
Implementing Logistic Regression
Getting ready
How to do itâŠ
How it worksâŠ
4. Support Vector Machines
Introduction
Working with a Linear SVM
Getting ready
How to do itâŠ
How it worksâŠ
Reduction to Linear Regression
Getting ready
How to do itâŠ
How it worksâŠ
Working with Kernels in TensorFlow
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing a Non-Linear SVM
Getting ready
How to do itâŠ
How it worksâŠ
Implementing a Multi-Class SVM
Getting ready
How to do itâŠ
How it worksâŠ
5. Nearest Neighbor Methods
Introduction
Working with Nearest Neighbors
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Working with Text-Based Distances
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Computing with Mixed Distance Functions
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Using an Address Matching Example
Getting ready
How to do itâŠ
How it worksâŠ
Using Nearest Neighbors for Image Recognition
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
6. Neural Networks
Introduction
Implementing Operational Gates
Getting ready
How to do itâŠ
How it worksâŠ
Working with Gates and Activation Functions
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing a One-Layer Neural Network
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing Different Layers
Getting ready
How to do itâŠ
How it worksâŠ
Using a Multilayer Neural Network
Getting ready
How to do itâŠ
How it worksâŠ
Improving the Predictions of Linear Models
Getting ready
How to do it
How it worksâŠ
Learning to Play Tic Tac Toe
Getting ready
How to do itâŠ
How it worksâŠ
7. Natural Language Processing
Introduction
Working with bag of words
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing TF-IDF
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Working with Skip-gram Embeddings
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Working with CBOW Embeddings
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Making Predictions with Word2vec
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Using Doc2vec for Sentiment Analysis
Getting ready
How to do itâŠ
How it worksâŠ
8. Convolutional Neural Networks
Introduction
Implementing a Simpler CNN
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
See also
Implementing an Advanced CNN
Getting ready
How to do itâŠ
How it worksâŠ
See also
Retraining Existing CNNs models
Getting ready
How to do itâŠ
How it worksâŠ
See also
Applying Stylenet/Neural-Style
Getting ready
How to do itâŠ
How it worksâŠ
See also
Implementing DeepDream
Getting ready
How to do itâŠ
There's moreâŠ
See also
9. Recurrent Neural Networks
Introduction
Implementing RNN for Spam Prediction
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Implementing an LSTM Model
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Stacking multiple LSTM Layers
Getting ready
How to do itâŠ
How it worksâŠ
Creating Sequence-to-Sequence Models
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Training a Siamese Similarity Measure
Getting ready
How to do itâŠ
There's moreâŠ
10. Taking TensorFlow to Production
Introduction
Implementing unit tests
Getting ready
How it worksâŠ
Using Multiple Executors
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Parallelizing TensorFlow
Getting ready
How to do itâŠ
How it worksâŠ
Taking TensorFlow to Production
Getting ready
How to do itâŠ
How it worksâŠ
Productionalizing TensorFlow â An Example
Getting ready
How to do itâŠ
How it worksâŠ
11. More with TensorFlow
Introduction
Visualizing graphs in Tensorboard
Getting ready
How to do itâŠ
There's moreâŠ
Working with a Genetic Algorithm
Getting ready
How to do itâŠ
How it worksâŠ
There's moreâŠ
Clustering Using K-Means
Getting ready
How to do itâŠ
There's moreâŠ
Solving a System of ODEs
Getting ready
How to do itâŠ
How it worksâŠ
See also
Index
TensorFlow Machine Learning Cookbook
Copyright © 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or revie...