Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorOliver Duerr, Beate Sick, Elvis Murina

Probabilistic Deep Learning: With Python, Keras and TensorFlow Probability teaches the increasingly popular probabilistic approach to deep learning that allows you to refine your results more quickly and accurately without much trial-and-error testing. Emphasizing practical techniques that use the Python-based Tensorflow Probability Framework, you’ll learn to build highly-performant deep learning applications that can reliably handle the noise and uncertainty of real-world data. About the technology The world is a noisy and uncertain place. Probabilistic deep learning models capture that noise and uncertainty, pulling it into real-world scenarios. Crucial for self-driving cars and scientific testing, these techniques help deep learning engineers assess the accuracy of their results, spot errors, and improve their understanding of how algorithms work.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on guide for machine learning practitioners who want to move beyond point predictions and build deep learning models that quantify uncertainty, using Python, Keras, and TensorFlow Probability to handle noisy, real-world data. 【Book Arc】 - **Opening (~0%–10%)**: Introduces the core motivation for probabilistic deep learning—capturing uncertainty in predictions—using relatable examples like navigation and face recognition, and outlines the book's structure for readers with some ML experience. - **Early (~10%–23%)**: Covers DL fundamentals, including neural network basics, classification vs. regression, and the limitations of non-probabilistic models, especially their overconfidence on unseen data; introduces Bayesian thinking as a solution for detecting novel inputs. - **Early (~23%–32%)**: Dives into neural network architectures, starting with fully connected networks (fcNNs), explaining biological inspiration, tensor shapes, and practical Keras implementation for classification tasks like banknote authentication. - **Middle (~39%–48%)**: Explores convolutional neural networks (CNNs) for image-like data, detailing how kernels, feature maps, and hierarchical feature learning work, and provides guidance on choosing architectures based on data structure (2D CNNs for images, 1D convolutions or RNNs for sequences, fcNNs otherwise). - **Middle (~48% onward)**: Transitions into curve fitting principles, introducing residuals, loss functions, and gradient descent as the foundation for training models, setting up the shift toward probabilistic modeling in later parts. 【Key Takeaways】 - **Uncertainty is the key differentiator** (Early): Probabilistic models output distributions, not single points, letting you compute probabilities like "93% chance of arriving on time" instead of just a mean estimate; this is critical for decision-making in real-world applications. - **Non-Bayesian models are overconfident** (Early): Standard neural networks assign high probabilities even to wrong classes when given unfamiliar inputs, making them unreliable for detecting novel data; Bayesian extensions add uncertainty that flags unreliable predictions. - **Architecture should match data structure** (Middle): Use 2D CNNs for images to exploit local structure via shared weights, 1D convolutions or RNNs for sequences, and fcNNs for unstructured data; matching architecture to data structure reduces what the network must learn from scratch. - **CNNs learn hierarchical features** (Middle): Inspired by the visual cortex, CNNs build increasingly complex representations—from simple edges to whole objects—by stacking layers of feature maps, which explains their high performance on image tasks. - **Loss functions derive from probabilistic principles** (Middle): For classification, negative log-likelihood (NLL) connects to cross-entropy and KL divergence; for regression, you can model non-constant variance by adding outputs, enabling richer predictions. - **Gradient descent is the training engine** (Middle): Residuals (differences between observed and predicted values) drive the loss, and gradient descent iteratively adjusts weights to minimize it; understanding this is essential before tackling probabilistic models. 【Reading Tips】 - **Skim the biology sections** (Early): The brain-inspired explanations for NNs and CNNs are interesting but not essential for implementation; focus instead on the tensor shapes and Keras code examples. - **Deep-read the banknote classification example** (Early): This practical walkthrough shows how to build, compile, and train an fcNN in Keras, making abstract concepts like decision boundaries and mini-batches concrete. - **Pay attention to architecture selection rules** (Middle): The summary at the end of the CNN chapter gives clear heuristics for choosing between fcNNs, CNNs, and RNNs—bookmark this for quick reference. - **Work through the math alongside code** (Middle): The book pairs mathematical derivations with Python implementations; don't skip either, as the code clarifies the math and vice versa. - **Expect a shift in part 2** (Middle): The early chapters build DL fundamentals, but the probabilistic modeling with TensorFlow Probability starts later; if you're already comfortable with DL basics, you can skim parts 1 and focus on the TFP-specific content. 【Coverage Limits】 This guide covers the book's opening through the middle sections (roughly the first half), focusing on DL fundamentals, architectures, and curve fitting principles; detailed TensorFlow Probability implementations and Bayesian deep learning techniques from later parts are not covered in these excerpts.
Page 6
designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Rec...
View in text
Excerpt 2
(see the dashed line in figure 1.5) that split the feature space into different regions. Each resulting region corresponds to one class label. In our example...
View in text
Excerpt 3
n model (see figure 2.6). We’ll separate the fake banknotes from the real banknotes for the data shown in figure 2.5. Before we define the Keras code, let’s...
View in text
Excerpt 4
validation_data=(X_val, Y_val) ) The first convolutional layer with eight kernels with the same padding results in an output feature map that has the same si...
View in text
Excerpt 5
Flow Variables with initial values can be optimized later. We name them so that they look nicer in the graph. # x,y are one dimensional numpy arrays Construc...
View in text
Excerpt 6
m variable Y takes a specific value k. In the equation, you can further read the vertical bar as “with given” or “conditioned on.” To the right of the bar co...
View in text
Excerpt 7
des a sound theoretical framework to derive loss functions. To use the MaxLike approach, you need to define a parametric probability dis- tribution for the o...
View in text
Excerpt 8
ms on the validation data, you can draw the validation data along with the predicted mean of the CPD, μx (see the solid line in figure 5.4), and the mean plu...
View in text
Tags
AI categories
Artificial IntelligencePythondeep learning
ISBN: 1617296074
Publish Year: 2020
Language: English
Pages: 252
File Format: PDF
File Size: 19.2 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…