|
42 | 42 | "colab_type": "text" |
43 | 43 | }, |
44 | 44 | "source": [ |
45 | | - "## Keras and TensorFlow: a brief history" |
| 45 | + "## Keras and TensorFlow: A brief history" |
46 | 46 | ] |
47 | 47 | }, |
48 | 48 | { |
|
60 | 60 | "colab_type": "text" |
61 | 61 | }, |
62 | 62 | "source": [ |
63 | | - "### Jupyter notebooks: the preferred way to run deep-learning experiments" |
| 63 | + "### Jupyter notebooks: The preferred way to run deep-learning experiments" |
64 | 64 | ] |
65 | 65 | }, |
66 | 66 | { |
|
87 | 87 | "colab_type": "text" |
88 | 88 | }, |
89 | 89 | "source": [ |
90 | | - "#### Installing packages with `pip`" |
| 90 | + "#### Installing packages with pip" |
91 | 91 | ] |
92 | 92 | }, |
93 | 93 | { |
|
114 | 114 | "colab_type": "text" |
115 | 115 | }, |
116 | 116 | "source": [ |
117 | | - "#### Constant tensors and Variables" |
| 117 | + "#### Constant tensors and variables" |
118 | 118 | ] |
119 | 119 | }, |
120 | 120 | { |
|
212 | 212 | "colab_type": "text" |
213 | 213 | }, |
214 | 214 | "source": [ |
215 | | - "**Creating a Variable**" |
| 215 | + "**Creating a TensorFlow variable**" |
216 | 216 | ] |
217 | 217 | }, |
218 | 218 | { |
|
233 | 233 | "colab_type": "text" |
234 | 234 | }, |
235 | 235 | "source": [ |
236 | | - "**Assigning a value to a Variable**" |
| 236 | + "**Assigning a value to a TensorFlow variable**" |
237 | 237 | ] |
238 | 238 | }, |
239 | 239 | { |
|
253 | 253 | "colab_type": "text" |
254 | 254 | }, |
255 | 255 | "source": [ |
256 | | - "**Assigning a value to a subset of a Variable**" |
| 256 | + "**Assigning a value to a subset of a TensorFlow variable**" |
257 | 257 | ] |
258 | 258 | }, |
259 | 259 | { |
|
273 | 273 | "colab_type": "text" |
274 | 274 | }, |
275 | 275 | "source": [ |
276 | | - "**Using assign_add**" |
| 276 | + "**Using `assign_add`**" |
277 | 277 | ] |
278 | 278 | }, |
279 | 279 | { |
|
293 | 293 | "colab_type": "text" |
294 | 294 | }, |
295 | 295 | "source": [ |
296 | | - "#### Tensor operations: doing math in TensorFlow" |
| 296 | + "#### Tensor operations: Doing math in TensorFlow" |
297 | 297 | ] |
298 | 298 | }, |
299 | 299 | { |
|
327 | 327 | "colab_type": "text" |
328 | 328 | }, |
329 | 329 | "source": [ |
330 | | - "#### A second look at the `GradientTape` API" |
| 330 | + "#### A second look at the GradientTape API" |
331 | 331 | ] |
332 | 332 | }, |
333 | 333 | { |
|
336 | 336 | "colab_type": "text" |
337 | 337 | }, |
338 | 338 | "source": [ |
339 | | - "**Using the GradientTape**" |
| 339 | + "**Using the `GradientTape`**" |
340 | 340 | ] |
341 | 341 | }, |
342 | 342 | { |
|
359 | 359 | "colab_type": "text" |
360 | 360 | }, |
361 | 361 | "source": [ |
362 | | - "**Using the GradientTape with constant tensor inputs**" |
| 362 | + "**Using `GradientTape` with constant tensor inputs**" |
363 | 363 | ] |
364 | 364 | }, |
365 | 365 | { |
|
408 | 408 | "colab_type": "text" |
409 | 409 | }, |
410 | 410 | "source": [ |
411 | | - "#### An end-to-end example: a linear classifier in pure TensorFlow" |
| 411 | + "#### An end-to-end example: A linear classifier in pure TensorFlow" |
412 | 412 | ] |
413 | 413 | }, |
414 | 414 | { |
|
430 | 430 | "source": [ |
431 | 431 | "num_samples_per_class = 1000\n", |
432 | 432 | "negative_samples = np.random.multivariate_normal(\n", |
433 | | - " mean=[0, 3], cov=[[1, 0.5],[0.5, 1]], size=num_samples_per_class)\n", |
| 433 | + " mean=[0, 3],\n", |
| 434 | + " cov=[[1, 0.5],[0.5, 1]],\n", |
| 435 | + " size=num_samples_per_class)\n", |
434 | 436 | "positive_samples = np.random.multivariate_normal(\n", |
435 | | - " mean=[3, 0], cov=[[1, 0.5],[0.5, 1]], size=num_samples_per_class)" |
| 437 | + " mean=[3, 0],\n", |
| 438 | + " cov=[[1, 0.5],[0.5, 1]],\n", |
| 439 | + " size=num_samples_per_class)" |
436 | 440 | ] |
437 | 441 | }, |
438 | 442 | { |
|
648 | 652 | "colab_type": "text" |
649 | 653 | }, |
650 | 654 | "source": [ |
651 | | - "## Anatomy of a neural network: understanding core Keras APIs" |
| 655 | + "## Anatomy of a neural network: Understanding core Keras APIs" |
652 | 656 | ] |
653 | 657 | }, |
654 | 658 | { |
|
657 | 661 | "colab_type": "text" |
658 | 662 | }, |
659 | 663 | "source": [ |
660 | | - "### Layers: the building blocks of deep learning" |
| 664 | + "### Layers: The building blocks of deep learning" |
661 | 665 | ] |
662 | 666 | }, |
663 | 667 | { |
|
666 | 670 | "colab_type": "text" |
667 | 671 | }, |
668 | 672 | "source": [ |
669 | | - "#### The base `Layer` class in Keras" |
| 673 | + "#### The base Layer class in Keras" |
| 674 | + ] |
| 675 | + }, |
| 676 | + { |
| 677 | + "cell_type": "markdown", |
| 678 | + "metadata": { |
| 679 | + "colab_type": "text" |
| 680 | + }, |
| 681 | + "source": [ |
| 682 | + "**A `Dense` layer implemented as a `Layer` subclass**" |
670 | 683 | ] |
671 | 684 | }, |
672 | 685 | { |
|
720 | 733 | "colab_type": "text" |
721 | 734 | }, |
722 | 735 | "source": [ |
723 | | - "#### Automatic shape inference: building layers on the fly" |
| 736 | + "#### Automatic shape inference: Building layers on the fly" |
724 | 737 | ] |
725 | 738 | }, |
726 | 739 | { |
|
782 | 795 | "colab_type": "text" |
783 | 796 | }, |
784 | 797 | "source": [ |
785 | | - "### The \"compile\" step: configuring the learning process" |
| 798 | + "### The \"compile\" step: Configuring the learning process" |
786 | 799 | ] |
787 | 800 | }, |
788 | 801 | { |
|
827 | 840 | "colab_type": "text" |
828 | 841 | }, |
829 | 842 | "source": [ |
830 | | - "### Understanding the `fit` method" |
| 843 | + "### Understanding the fit() method" |
831 | 844 | ] |
832 | 845 | }, |
833 | 846 | { |
|
836 | 849 | "colab_type": "text" |
837 | 850 | }, |
838 | 851 | "source": [ |
839 | | - "**Calling `fit` with NumPy data**" |
| 852 | + "**Calling `fit()` with NumPy data**" |
840 | 853 | ] |
841 | 854 | }, |
842 | 855 | { |
|
872 | 885 | "colab_type": "text" |
873 | 886 | }, |
874 | 887 | "source": [ |
875 | | - "### Monitoring loss & metrics on validation data" |
| 888 | + "### Monitoring loss and metrics on validation data" |
876 | 889 | ] |
877 | 890 | }, |
878 | 891 | { |
|
881 | 894 | "colab_type": "text" |
882 | 895 | }, |
883 | 896 | "source": [ |
884 | | - "**Using the validation data argument**" |
| 897 | + "**Using the `validation_data` argument**" |
885 | 898 | ] |
886 | 899 | }, |
887 | 900 | { |
|
921 | 934 | "colab_type": "text" |
922 | 935 | }, |
923 | 936 | "source": [ |
924 | | - "### Inference: using a model after training" |
| 937 | + "### Inference: Using a model after training" |
925 | 938 | ] |
926 | 939 | }, |
927 | 940 | { |
|
942 | 955 | "colab_type": "text" |
943 | 956 | }, |
944 | 957 | "source": [ |
945 | | - "## Chapter summary" |
| 958 | + "## Summary" |
946 | 959 | ] |
947 | 960 | } |
948 | 961 | ], |
|
0 commit comments