Updated with new code, new projects, and new chapters, Machine Learning with TensorFlow, Second Edition gives readers a solid foundation in machine-learning concepts and the TensorFlow library. Written by NASA JPL Deputy CTO and Principal Data Scientist Chris Mattmann, all examples are accompanied by downloadable Jupyter Notebooks for a hands-on experience coding TensorFlow with Python. New and revised content expands coverage of core machine learning algorithms, and advancements in neural networks such as VGG-Face facial identification classifiers and deep speech classifiers.
About the Technology
Supercharge your data analysis with machine learning! ML algorithms automatically improve as they process data, so results get better over time. You don’t have to be a mathematician to use ML: Tools like Google’s TensorFlow library help with complex calculations so you can focus on getting the answers you need.
About the book
Machine Learning with TensorFlow, Second Edition is a fully revised guide to building machine learning models using Python and TensorFlow. You’ll apply core ML concepts to real-world challenges, such as sentiment analysis, text classification, and image recognition. Hands-on examples illustrate neural network techniques for deep speech processing, facial identification, and auto-encoding with CIFAR-10.
What's inside
• Machine Learning with TensorFlow
• Choosing the best ML approaches
• Visualizing algorithms with TensorBoard
• Sharing results with collaborators
• Running models in Docker
About the reader
Requires intermediate Python skills and knowledge of general algebraic concepts like vectors and matrices. Examples use the super-stable 1.15.x branch of TensorFlow and TensorFlow 2.x.
About the author
Chris Mattmann is the Division Manager of the Artificial Intelligence, Analytics, and Innovation Organization at NASA Jet Propulsion Lab. The first edition of this book was written by Nishant Shukla with Kenneth Fricklas.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A hands-on, project-driven introduction to machine learning with TensorFlow, this book takes intermediate Python developers from core ML concepts (regression, classification, clustering) through advanced neural network architectures like CNNs, RNNs, and autoencoders, with downloadable Jupyter Notebooks for every example.
【Book Arc】
- **Opening (~0%–9%)**: Establishes the "black box" metaphor for ML, introduces the core idea of parameters and models, and frames the book's approach: using TensorFlow to tune parameters automatically rather than hand-coding every algorithm detail.
- **Early (~9%–28%)**: Covers TensorFlow essentials—tensors, ranks, dataflow graphs, sessions, and the key value types (placeholders, variables, constants). Introduces TensorBoard for visualization and automatic differentiation as a key advantage, plus the exponential averaging example for understanding moving averages.
- **Early-to-Middle (~28%–44%)**: Moves into core ML algorithms, starting with linear regression as a cost-minimization problem (defining cost functions, epochs, and optimizers), then introducing regularization (λ) and distance metrics (L0, L1, L2 norms) for comparing feature vectors.
- **Middle (~44%–47%)**: Applies regression to a real-world problem—predicting NYC 311 call-center volume by week—showing how to clean messy CSV data, bin it, fit a Gaussian model, and visualize results with NumPy (avoiding TensorFlow session overhead for evaluation).
- **Late (~47%+ per excerpts)**: Transitions into classification (fruit example), then advances to neural networks: CNNs for image recognition, deep speech classifiers (with character-level transcript preparation and connectionist temporal classification), and sequence-to-sequence models for chatbots (vector representation of symbols, dialogue data gathering).
【Key Takeaways】
- **ML is parameter tuning in a black box** (Opening): Instead of writing every algorithm detail, you define a model with undecided values (parameters) and let the system learn optimal values from examples—this is the recurring motif of the book.
- **TensorFlow's core abstraction is the dataflow graph + session** (Early): You build a graph of operations (constants, placeholders, variables) and then run it in a session; placeholders are for model inputs/outputs, variables for learnable parameters, constants for hyperparameters.
- **Automatic differentiation is TensorFlow's superpower** (Early): It hides backpropagation details for neural networks, letting you experiment with new architectures without redefining key calculations—like using WolframAlpha for calculus.
- **Distance metrics are the foundation of similarity** (Early): L0, L1, L2, and L-infinity norms each measure distance differently; choosing the right one matters for tasks like login verification (L0) or geometric intuition (L2).
- **Regression is cost minimization** (Middle): Define a cost function (e.g., sum of squared errors), let TensorFlow's optimizer find the best parameters, and iterate over epochs; regularization (λ) trades off fit vs. complexity.
- **Real-world data is messy—prepare it first** (Middle): The 311 call-center example shows the importance of cleaning CSV data, binning timestamps into weekly buckets, and normalizing values before fitting a model.
- **Neural networks extend from classification foundations** (Late): CNNs, deep speech (with CTC loss), and seq2seq chatbots all build on the same classification/RNN principles, adding layers of complexity for images, audio, and text.
【Reading Tips】
- **Skim the TensorFlow setup chapters (1–2) if you're experienced**: The graph/session model is essential, but the code listings are straightforward; focus on the conceptual distinctions (placeholder vs. variable vs. constant) and TensorBoard usage.
- **Deep-read the regression and classification chapters (3–5)**: These establish the cost-function/optimizer pattern that recurs throughout; understanding the linear regression example (listing 3.2) will make later neural network chapters much easier.
- **Use the Jupyter Notebooks for every example**: The book's value is in running the code; don't just read listings—execute them, tweak hyperparameters (learning rate, epochs, λ), and observe how cost and predictions change.
- **Watch for the NumPy-vs-TensorFlow evaluation trick** (Middle): After training, you can often evaluate models with NumPy functions (np.exp, np.power) instead of re-running a TensorFlow session—a practical time-saver for simple models.
- **The late chapters (deep speech, seq2seq) are advanced**: If you're new to neural networks, skim these for architectural concepts (CTC, attention, vector embeddings) rather than trying to implement them immediately; they're better as reference material.
【Coverage Limits】
The excerpts cover roughly the first half of the book in detail (fundamentals through regression/classification) and provide a table of contents for later chapters (CNNs, deep speech, seq2seq). Specific implementation details for those advanced chapters are not covered in this guide.
Excerpt 1
ics, and Innovation Organization at NASA Jet Propulsion Lab. The first edition of this book was written by Nishant Shukla with Kenneth Fricklas. SECOND EDITI...
use many toolkits to do ML, but you’re reading a book about TensorFlow, right? Let’s focus on it! One of the fanciest properties of TensorFlow is its automat...
ator (list- ing 2.11) that does exactly as the formula says. To run this code, you’ll eventually have to define alpha, curr_value, and prev_avg. Listing 2.11...
on from listing 4.4. The reason to do this instead of reus- ing the model function and passing in mu_val and sig_val as arguments is that when TensorFlow lea...
f in two ways: first as binary sentiment (such as positive/ negative reaction) and then as multiclass sentiment (such as hate, sad, neutral, like, or love)....
ow these files are represented. If you’ve ever seen a vinyl record, you’ve probably noticed the representation of audio as grooves indented in the disk. Our...
was in chapter 7, because the goal of clustering is to have one 1 × M feature vector represent each participant you want to cluster. One observa- tion you ca...
a verb, based on all other sentences your program has seen. The great news is that all your code from chapter 9 is reusable here. The grand effort you spend...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Machine Learning with TensorFlow (Chris A. Mattmann)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Machine Learning with TensorFlow (Chris A. Mattmann)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment