Details

TensorFlow For Dummies


TensorFlow For Dummies


1. Aufl.

von: Matthew Scarpino

23,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 07.03.2018
ISBN/EAN: 9781119466208
Sprache: englisch
Anzahl Seiten: 368

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>Become a machine learning pro!</b> </p> <p>Google TensorFlow has become the darling of financial firms and research organizations, but the technology can be intimidating and the learning curve is steep. Luckily, <i>TensorFlow For Dummies</i> is here to offer you a friendly, easy-to-follow book on the subject. Inside, you’ll find out how to write applications with TensorFlow, while also grasping the concepts underlying machine learning—all without ever losing your cool!</p> <p>Machine learning has become ubiquitous in modern society, and its applications include language translation, robotics, handwriting analysis, financial prediction, and image recognition. TensorFlow is Google's preeminent toolset for machine learning, and this hands-on guide makes it easy to understand, even for those without a background in artificial intelligence. </p> <ul> <li>Install TensorFlow on your computer</li> <li>Learn the fundamentals of statistical regression and neural networks</li> <li>Visualize the machine learning process with TensorBoard</li> <li>Perform image recognition with convolutional neural networks (CNNs)</li> <li>Analyze sequential data with recurrent neural networks (RNNs)</li> <li>Execute TensorFlow on mobile devices and the Google Cloud Platform (GCP)</li> </ul> <p>If you’re a manager or software developer looking to use TensorFlow for machine learning, this is the book you’ll want to have close by.</p>
<p><b>Introduction 1</b></p> <p>About This Book 1</p> <p>Foolish Assumptions 2</p> <p>Icons Used in This Book 2</p> <p>Beyond the Book 3</p> <p>Where to Go from Here 4</p> <p><b>Part 1: Getting to Know Tensorflow</b> 5</p> <p><b>Chapter 1: Introducing Machine Learning with TensorFlow </b><b>7</b></p> <p>Understanding Machine Learning 7</p> <p>The Development of Machine Learning 8</p> <p>Statistical regression 9</p> <p>Reverse engineering the brain 10</p> <p>Steady progress 11</p> <p>The computing revolution 12</p> <p>The rise of big data and deep learning 12</p> <p>Machine Learning Frameworks 13</p> <p>Torch 14</p> <p>Theano 14</p> <p>Caffe 14</p> <p>Keras 15</p> <p>TensorFlow 15</p> <p><b>Chapter 2: Getting Your Feet Wet</b><b> 17</b></p> <p>Installing TensorFlow 17</p> <p>Python and pip/pip3 18</p> <p>Installing on Mac OS 19</p> <p>Installing on Linux 20</p> <p>Installing on Windows 20</p> <p>Exploring the TensorFlow Installation 21</p> <p>Running Your First Application 22</p> <p>Exploring the example code 23</p> <p>Launching Hello TensorFlow! 23</p> <p>Setting the Style 24</p> <p><b>Chapter 3: Creating Tensors and Operations </b><b>27</b></p> <p>Creating Tensors 27</p> <p>Creating Tensors with Known Values 28</p> <p>The constant function 30</p> <p>zeros, ones, and fill 30</p> <p>Creating sequences 31</p> <p>Creating Tensors with Random Values 31</p> <p>Transforming Tensors.33</p> <p>Creating Operations 35</p> <p>Basic math operations 35</p> <p>Rounding and comparison 37</p> <p>Exponents and logarithms 38</p> <p>Vector and matrix operations 39</p> <p>Putting Theory into Practice 42</p> <p><b>Chapter 4: Executing Graphs in Sessions</b><b> 45</b></p> <p>Forming Graphs 46</p> <p>Accessing graph data 47</p> <p>Creating GraphDefs 49</p> <p>Creating and Running Sessions 51</p> <p>Creating sessions 51</p> <p>Executing a session 52</p> <p>Interactive sessions 53</p> <p>Writing Messages to the Log 54</p> <p>Visualizing Data with TensorBoard 56</p> <p>Running TensorBoard 57</p> <p>Generating summary data 57</p> <p>Creating custom summaries 59</p> <p>Writing summary data 59</p> <p>Putting Theory into Practice 62</p> <p><b>Chapter 5: Training</b><b> 65</b></p> <p>Training in TensorFlow 66</p> <p>Formulating the Model 66</p> <p>Looking at Variables 67</p> <p>Creating variables 68</p> <p>Initializing variables 68</p> <p>Determining Loss 69</p> <p>Minimizing Loss with Optimization 70</p> <p>The Optimizer class 70</p> <p>The GradientDescentOptimizer 71</p> <p>The MomentumOptimizer 75</p> <p>The AdagradOptimizer 76</p> <p>The AdamOptimizer 77</p> <p>Feeding Data into a Session 78</p> <p>Creating placeholders 79</p> <p>Defining the feed dictionary 79</p> <p>Stochasticity 80</p> <p>Monitoring Steps, Global Steps, and Epochs 80</p> <p>Saving and Restoring Variables 82</p> <p>Saving variables 82</p> <p>Restoring variables 83</p> <p>Working with SavedModels 84</p> <p>Saving a SavedModel 85</p> <p>Loading a SavedModel 86</p> <p>Putting Theory into Practice 86</p> <p>Visualizing the Training Process 89</p> <p>Session Hooks 90</p> <p>Creating a session hook 91</p> <p>Creating a MonitoredSession 93</p> <p>Putting theory into practice 94</p> <p><b>Part 2: Implementing Machine Learning</b><b> 97</b></p> <p><b>Chapter 6: Analyzing Data with Statistical Regression</b><b> 99</b></p> <p>Analyzing Systems Using Regression 100</p> <p>Linear Regression: Fitting Lines to Data 100</p> <p>Polynomial Regression: Fitting Polynomials to Data 103</p> <p>Binary Logistic Regression: Classifying Data into Two Categories 105</p> <p>Setting up the problem 105</p> <p>Defining models with the logistic function 106</p> <p>Computing loss with maximum likelihood estimation 107</p> <p>Putting theory into practice 108</p> <p>Multinomial Logistic Regression: Classifying Data into Multiple Categories 110</p> <p>The Modified National Institute of Science and Technology (MNIST) Dataset 110</p> <p>Defining the model with the softmax function 113</p> <p>Computing loss with cross entropy 114</p> <p>Putting theory into practice 115</p> <p><b>Chapter 7: Introducing Neural Networks and Deep Learning</b><b> 117</b></p> <p>From Neurons to Perceptrons 117</p> <p>Neurons 118</p> <p>Perceptrons 119</p> <p>Improving the Model 121</p> <p>Weights 121</p> <p>Bias 122</p> <p>Activation functions 123</p> <p>Layers and Deep Learning 127</p> <p>Layers 128</p> <p>Deep learning 129</p> <p>Training with Backpropagation 129</p> <p>Implementing Deep Learning 131</p> <p>Tuning the Neural Network 133</p> <p>Input standardization 134</p> <p>Weight initialization 135</p> <p>Batch normalization 136</p> <p>Regularization 139</p> <p>Managing Variables with Scope 141</p> <p>Variable scope 141</p> <p>Retrieving variables from collections 142</p> <p>Scopes for names and arguments 143</p> <p>Improving the Deep Learning Process 143</p> <p>Creating tuned layers 144</p> <p>Putting theory into practice 145</p> <p><b>Chapter 8: Classifying Images with Convolutional Neural Networks (CNNs)</b><b> 149</b></p> <p>Filtering Images 149</p> <p>Convolution 150</p> <p>Averaging Filter 151</p> <p>Filters and features 152</p> <p>Feature detection analogy 153</p> <p>Setting convolution parameters 153</p> <p>Convolutional Neural Networks (CNNs) 155</p> <p>Creating convolution layers 156</p> <p>Creating pooling layers 158</p> <p>Putting Theory into Practice 160</p> <p>Processing CIFAR images 160</p> <p>Classifying CIFAR images in code 162</p> <p>Performing Image Operations 166</p> <p>Converting images 166</p> <p>Color processing 169</p> <p>Rotating and mirroring 170</p> <p>Resizing and cropping 172</p> <p>Convolution 174</p> <p>Putting Theory into Practice 175</p> <p><b>Chapter 9: Analyzing Sequential Data with Recurrent Neural Networks (RNNs)</b><b> 179</b></p> <p>Recurrent Neural Networks (RNNs) 180</p> <p>RNNs and recursive functions 181</p> <p>Training RNNs 182</p> <p>Creating RNN Cells 183</p> <p>Creating a basic RNN 185</p> <p>Predicting text with RNNs 188</p> <p>Creating multilayered cells 190</p> <p>Creating dynamic RNNs 191</p> <p>Long Short-Term Memory (LSTM) Cells 192</p> <p>Creating LSTMs in code 194</p> <p>Predicting text with LSTMs 196</p> <p>Gated Recurrent Units (GRUs) 196</p> <p>Creating GRUs in code 197</p> <p>Predicting text with GRUs 198</p> <p><b>Part 3: Simplifying and Accelerating Tensorflow</b><b> 199</b></p> <p><b>Chapter 10: Accessing Data with Datasets and Iterators</b><b> 201</b></p> <p>Datasets 201</p> <p>Creating datasets 202</p> <p>Processing datasets 208</p> <p>Iterators 213</p> <p>One-shot iterators 213</p> <p>Initializable iterators 215</p> <p>Reinitializable iterators 216</p> <p>Feedable iterators 217</p> <p>Putting Theory into Practice 218</p> <p>Bizarro Datasets 221</p> <p>Loading data from CSV files 222</p> <p>Loading the Iris and Boston datasets 223</p> <p><b>Chapter 11: Using Threads, Devices, and Clusters</b><b> 225</b></p> <p>Executing with Multiple Threads 226</p> <p>Configuring a new session 226</p> <p>Configuring a running session 228</p> <p>Configuring Devices 229</p> <p>Building TensorFlow from source 229</p> <p>Assigning operations to devices 235</p> <p>Configuring GPU usage 237</p> <p>Executing TensorFlow in a Cluster 238</p> <p>Creating a ClusterSpec 239</p> <p>Creating a server 240</p> <p>Specifying jobs and tasks 241</p> <p>Running a simple cluster 244</p> <p><b>Chapter 12: Developing Applications with Estimators</b><b> 247</b></p> <p>Introducing Estimators 248</p> <p>Training an Estimator 248</p> <p>Testing an Estimator 250</p> <p>Running an Estimator 250</p> <p>Creating Input Functions 251</p> <p>Configuring an Estimator 252</p> <p>Using Feature Columns 253</p> <p>Creating and Using Estimators 256</p> <p>Linear regressors 257</p> <p>DNN classifiers 260</p> <p>Combined linear-DNN classifiers 262</p> <p>Wide and deep learning 263</p> <p>Analyzing census data 264</p> <p>Running Estimators in a Cluster 269</p> <p>Accessing Experiments 270</p> <p>Creating an experiment 271</p> <p>Methods of the experiment class 272</p> <p>Running an experiment 273</p> <p>Putting theory into practice 274</p> <p><b>Chapter 13: Running Applications on the Google Cloud Platform (GCP)</b><b> 277</b></p> <p>Overview 278</p> <p>Working with GCP projects 278</p> <p>Creating a new project 279</p> <p>Billing 279</p> <p>Accessing the machine learning engine 280</p> <p>The Cloud Software Development Kit (SDK) 280</p> <p>The gcloud Utility 281</p> <p>Google Cloud Storage 283</p> <p>Buckets 283</p> <p>Objects and virtual hierarchy 285</p> <p>The gsutil utility 286</p> <p>Preparing for Deployment 290</p> <p>Receiving arguments 290</p> <p>Packaging TensorFlow code 291</p> <p>Executing Applications with the Cloud SDK 293</p> <p>Local execution 294</p> <p>Deploying to the cloud 295</p> <p>Configuring a Cluster in the Cloud 299</p> <p>Setting the training input 300</p> <p>Obtaining the training output 303</p> <p>Setting the prediction input 304</p> <p>Obtaining the prediction output 305</p> <p><b>Part 4: The Part of Tens</b><b> 307</b></p> <p><b>Chapter 14: The Ten Most Important Classes</b><b> 309</b></p> <p>Tensor 309</p> <p>Operation 310</p> <p>Graph 310</p> <p>Session 311</p> <p>Variable 311</p> <p>Optimizer 312</p> <p>Estimator 312</p> <p>Dataset 312</p> <p>Iterator 313</p> <p>Saver 313</p> <p><b>Chapter 15: Ten Recommendations for Training Neural Networks</b><b> 315</b></p> <p>Select a Representative Dataset 315</p> <p>Standardize Your Data 316</p> <p>Use Proper Weight Initialization 316</p> <p>Start with a Small Number of Layers 316</p> <p>Add Dropout Layers 317</p> <p>Train with Small, Random Batches 317</p> <p>Normalize Batch Data 317</p> <p>Try Different Optimization Algorithms 318</p> <p>Set the Right Learning Rate 318</p> <p>Check Weights and Gradients 318</p> <p>Index 319</p>
<p><b>Matthew Scarpino</b> has been a programmer and engineer for more than 20 years. He has worked extensively with machine learning applications, especially those involving financial analysis, cognitive modeling, and image recognition. Matthew is a Google Certified Data Engineer and blogs about TensorFlow at tfblog.com.
<ul> <li>Explore the underlying machine learning concepts</li> <li>Deploy TensorFlow applications to the Google Cloud Platform</li> <li>Learn TensorFlow modules and create a neural network</li> </ul> <p><b>Discover the magic of machine learning</b> <p>TensorFlow, Google's free toolset for machine learning, has a huge following among corporations, academics, and financial institutions. With the guidance of this book, you can jump on board, too! <i>TensorFlow For Dummies</i> tames this sometimes intimidating technology and explains, in simple steps, how to write TensorFlow applications. Along the way, you'll get familiar with the concepts that underlie machine learning and discover some of the ways to use it in language generation, image recognition, and much more. <p><b>Inside …</b> <ul> <li>Write machine learning apps</li> <li>Work with TensorFlow modules</li> <li>Apply statistical regression</li> <li>Code distributed applications</li> <li>Analyze images and text</li> <li>Use deep neural networks</li> <li>Categorize data sets</li> <li>Build TensorFlow estimators</li> </ul>

Diese Produkte könnten Sie auch interessieren:

Network Infrastructure Security
Network Infrastructure Security
von: Angus Wong, Alan Yeung
PDF ebook
96,29 €
Robuste Handkonturerkennung
Robuste Handkonturerkennung
von: Oliver Jorkisch
PDF ebook
48,00 €
Strings of Natural Languages
Strings of Natural Languages
von: Markus Stengel
PDF ebook
48,00 €