0%

Master TensorFlow to create powerful machine learning algorithms, with valuable insights on Keras, Boosted Trees, Tabular Data, Transformers, Reinforcement Learning and more

Key Features

  • Work with the latest code and examples for TensorFlow 2
  • Get to grips with the fundamentals including variables, matrices, and data sources
  • Learn advanced deep learning techniques to make your algorithms faster and more accurate

Book Description

The independent recipes in Machine Learning Using TensorFlow Cookbook will teach you how to perform complex data computations and gain valuable insights into your data. You will work through recipes on training models, model evaluation, sentiment analysis, regression analysis, artificial neural networks, and deep learning - each using Google's machine learning library, TensorFlow.

This cookbook begins by introducing you to the fundamentals of the TensorFlow library, including variables, matrices, and various data sources. You'll then take a deep dive into some real-world implementations of Keras and TensorFlow and learn how to use estimators to train linear models and boosted trees, both for classification and for regression to provide a baseline for tabular data problems.

As you progress, you'll explore the practical applications of a variety of deep learning architectures, such as recurrent neural networks and Transformers, and see how they can be applied to computer vision and natural language processing (NLP) problems. Once you are familiar with the TensorFlow ecosystem, the final chapter will teach you how to take a project to production.

By the end of this machine learning book, you will be proficient in using TensorFlow 2. You'll also understand deep learning from the fundamentals and be able to implement machine learning algorithms in real-world scenarios.

What you will learn

  • Grasp linear regression techniques with TensorFlow
  • Use Estimators to train linear models and boosted trees for classification or regression
  • Execute neural networks and improve predictions on tabular data
  • Master convolutional neural networks and recurrent neural networks through practical recipes
  • Apply reinforcement learning algorithms using the TF-Agents framework
  • Implement and fine-tune Transformer models for various NLP tasks
  • Take TensorFlow into production

Who this book is for

If you are a data scientist or a machine learning engineer, and you want to skip detailed theoretical explanations in favor of building production-ready machine learning models using TensorFlow, this book is for you.

Basic familiarity with Python, linear algebra, statistics, and machine learning is necessary to make the most out of this book.

Table of Contents

  1. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
    4. Get in touch
  2. Getting Started with TensorFlow 2.x
    1. How TensorFlow works
    2. Getting ready
    3. How to do it…
    4. How it works…
    5. See also
    6. Declaring variables and tensors
    7. Getting ready
    8. How to do it…
    9. How it works…
    10. There's more…
    11. Using eager execution
    12. Getting ready
    13. How to do it…
    14. How it works…
    15. There's more…
    16. Working with matrices
    17. Getting ready
    18. How to do it…
    19. How it works…
    20. See also
    21. Declaring operations
    22. Getting ready
    23. How to do it…
    24. How it works…
    25. There's more…
    26. Implementing activation functions
    27. Getting ready
    28. How to do it…
    29. How it works…
    30. There's more…
    31. Working with data sources
    32. Getting ready
    33. How to do it…
    34. How it works…
    35. See also
    36. Additional resources
    37. Getting ready
    38. How to do it…
  3. The TensorFlow Way
    1. Operations using eager execution
    2. Getting ready
    3. How to do it...
    4. How it works...
    5. Layering nested operations
    6. Getting ready
    7. How to do it...
    8. How it works...
    9. There's more...
    10. Working with multiple layers
    11. Getting ready
    12. How to do it...
    13. How it works...
    14. Implementing loss functions
    15. Getting ready
    16. How to do it...
    17. How it works...
    18. There's more...
    19. Implementing backpropagation
    20. Getting ready
    21. How to do it...
    22. How it works...
    23. There's more...
    24. See also
    25. Working with batch and stochastic training
    26. Getting ready
    27. How to do it...
    28. How it works...
    29. There's more...
    30. Combining everything together
    31. Getting ready
    32. How to do it...
    33. How it works...
    34. There's more...
    35. See also
  4. Keras
    1. Introduction
    2. Understanding Keras layers
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. See also
    7. Using the Keras Sequential API
    8. Getting ready
    9. How to do it...
    10. How it works...
    11. See also
    12. Using the Keras Functional API
    13. Getting ready
    14. How to do it...
    15. Creating a Functional model
    16. Using callable models like layers
    17. Creating a model with multiple inputs and outputs
    18. Shared layers
    19. Extracting and reusing nodes in the graph of layers
    20. How it works...
    21. There's more...
    22. See also
    23. Using the Keras Subclassing API
    24. Getting ready
    25. How to do it...
    26. Creating a custom layer
    27. Creating a custom model
    28. How it works...
    29. See also
    30. Using the Keras Preprocessing API
    31. Getting ready
    32. How to do it...
    33. Sequence preprocessing
    34. Text preprocessing
    35. Image preprocessing
    36. How it works...
    37. See also
  5. Linear Regression
    1. Learning the TensorFlow way of linear regression
    2. Getting ready
    3. How to do it...
    4. How it works...
    5. There's more...
    6. Turning a Keras model into an Estimator
    7. Getting ready
    8. How to do it...
    9. How it works...
    10. There's more...
    11. Understanding loss functions in linear regression
    12. Getting ready
    13. How to do it...
    14. How it works...
    15. There's more...
    16. Implementing Lasso and Ridge regression
    17. Getting ready
    18. How to do it...
    19. How it works...
    20. There's more...
    21. Implementing logistic regression
    22. Getting ready
    23. How to do it...
    24. How it works...
    25. There's more...
    26. Resorting to non-linear solutions
    27. Getting ready
    28. How to do it...
    29. How it works...
    30. There's more...
    31. Using Wide & Deep models
    32. Getting ready
    33. How to do it...
    34. How it works...
  6. Boosted Trees
    1. Introduction
    2. How to do it...
    3. How it works...
    4. See also
  7. Neural Networks
    1. Implementing operational gates
    2. Getting ready
    3. How to do it...
    4. How it works...
    5. Working with gates and activation functions
    6. Getting ready
    7. How to do it...
    8. How it works...
    9. There's more...
    10. Implementing a one-layer neural network
    11. Getting ready
    12. How to do it...
    13. How it works...
    14. Implementing different layers
    15. Getting ready
    16. How to do it...
    17. How it works...
    18. Using a multilayer neural network
    19. Getting ready
    20. How to do it...
    21. How it works...
    22. Improving the predictions of linear models
    23. Getting ready
    24. How to do it...
    25. How it works...
    26. Learning to play Tic-Tac-Toe
    27. Getting ready
    28. How to do it...
    29. How it works...
  8. Predicting with Tabular Data
    1. Processing numerical data
    2. Getting ready
    3. How to do it…
    4. How it works…
    5. There's more…
    6. Processing dates
    7. Getting ready
    8. How to do it…
    9. How it works…
    10. There's more…
    11. Processing categorical data
    12. Getting ready
    13. How to do it…
    14. How it works…
    15. There's more…
    16. Processing ordinal data
    17. Getting ready
    18. How to do it…
    19. How it works…
    20. Processing high-cardinality categorical data
    21. Getting ready
    22. How to do it…
    23. How it works…
    24. There's more…
    25. Wrapping up all the processing
    26. Getting ready
    27. How to do it…
    28. How it works…
    29. There's more…
    30. Setting up a data generator
    31. Getting ready
    32. How to do it…
    33. How it works…
    34. Creating custom activations for tabular data
    35. Getting ready
    36. How to do it…
    37. How it works…
    38. Running a test on a difficult problem
    39. Getting ready
    40. How to do it…
    41. How it works…
  9. Convolutional Neural Networks
    1. Introduction
    2. Implementing a simple CNN
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. There's more...
    7. See also
    8. Implementing an advanced CNN
    9. Getting ready
    10. How to do it...
    11. How it works...
    12. See also
    13. Retraining existing CNN models
    14. Getting ready
    15. How to do it...
    16. How it works...
    17. See also
    18. Applying StyleNet and the neural style project
    19. Getting ready
    20. How to do it...
    21. How it works...
    22. See also
    23. Implementing DeepDream
    24. Getting ready
    25. How to do it...
    26. There's more...
    27. See also
  10. Recurrent Neural Networks
    1. Text generation
    2. How to do it...
    3. See also
    4. Sentiment classification
    5. How to do it...
    6. See also
    7. Stock price prediction
    8. How to do it...
    9. Open-domain question answering
    10. How to do it...
    11. Summary
  11. Transformers
    1. Text generation
    2. How do we go about it?
    3. Output:
    4. Output:
    5. Output:
    6. See also
    7. Sentiment analysis
    8. How do we go about it?
    9. See also
    10. Open-domain question answering
    11. How do we go about it?
  12. Reinforcement Learning with TensorFlow and TF-Agents
    1. GridWorld
    2. How do we go about it?
    3. See also
    4. CartPole
    5. How do we go about it?
    6. See also
    7. MAB
    8. How do we go about it?
    9. See also
  13. Taking TensorFlow to Production
    1. Visualizing Graphs in TensorBoard
    2. Getting ready
    3. How to do it...
    4. How it works...
    5. See also
    6. There's more...
    7. Managing Hyperparameter tuning with TensorBoard's HParams
    8. Getting ready
    9. How to do it...
    10. See also
    11. Implementing unit tests
    12. Getting ready
    13. How to do it...
    14. How it works...
    15. See also
    16. Using multiple executors
    17. Getting ready
    18. How to do it...
    19. How it works...
    20. There's more...
    21. Parallelizing TensorFlow
    22. Getting ready
    23. How to do it...
    24. How it works...
    25. See also
    26. There's more...
    27. Saving and restoring a TensorFlow model
    28. Getting ready
    29. How to do it...
    30. How it works...
    31. See also
    32. Using TensorFlow Serving
    33. Getting ready
    34. How to do it...
    35. How it works...
    36. There's more...
  14. Other Books You May Enjoy
  15. Index
3.133.156.156