Commit Graph

13 Commits

Author SHA1 Message Date
Jerome Lovy
9b7ab19c56 Import urllib.request instead of urllib
As of January 25, 2021, in some environments, such as Colab (Python 3.6.9),
the following import statement
    import urllib
is not the right one for using urllib.request.

Indeed, calls to urllib.request functions then yield the following error:
    AttributeError: module 'urllib' has no attribute 'request'

One must import urllib.request instead.

See also https://stackoverflow.com/q/22278993
2021-01-25 11:55:32 +01:00
Aurélien Geron
2f7ab70295 Update notebooks to latest nbformat 2020-04-06 19:13:12 +12:00
Aurélien Geron
9dafb01893 Add the coding exercise solutions for chapter 13 2020-03-20 23:22:47 +13:00
Aurélien Geron
56d8c08d3e Make notebook 13 runnable in Colab without changes 2019-11-06 12:16:20 +08:00
Aurélien Geron
5edb3f3e51 Add protoc example and tf.io.decode_proto() example 2019-10-21 09:01:15 +08:00
Aurélien Geron
2913a17508 Work around "import tensorflow.train" bug. 2019-10-12 17:42:41 +09:30
Aurélien Geron
5c9957065b Work around "import tensorflow.train" bug. 2019-10-12 17:38:40 +09:30
Aurélien Geron
7d0052f146 Import urllib directly instead of from six.moves, as we move away from Python 2 2019-10-12 16:42:23 +09:30
Aurélien Geron
400920f0aa SGD now defaults to lr=0.01 so use 1e-3 explicitly 2019-06-10 10:53:32 +08:00
Aurélien Geron
73a36f335f Add warning about TF issue regarding DenseFeatures and the Functional API, fixes #6 2019-05-15 20:23:24 +08:00
Aurélien Geron
df9b91e2e8 Rename chapters 11 to 15 and split chapter 15 into 15 and 16 2019-04-16 20:39:14 +08:00
Aurélien Geron
52afcf4290 Crop long outputs so they show up nicer on github.com 2019-04-16 00:06:57 +08:00
Aurélien Geron
990fb1a453 Add notebook for chapter 13, loading and preprocessing data 2019-03-14 09:15:09 +08:00