Commit Graph

617 Commits (9b7ab19c56db92a7635fa82e1df37d81fbac291d)

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 8ebdcffc6b Work around TF Agents issue: env.step(1) => env.step(np.array(1)) 2020-11-23 16:52:37 +13:00
Aurélien Geron f225f59780 Update to latest library versions 2020-11-21 12:22:42 +13:00
Aurélien Geron 1e81324573 Merge pull request #212 from RichaldoElias/patch-1
Update tools_numpy.ipynb
2020-07-29 09:16:40 +12:00
Richaldo Elias fd54bc6e8c Update tools_numpy.ipynb
To create an ndarray using NumPy's `arange` function, which is similar to python's built-in `range` function
2020-07-25 18:42:30 +02:00
Aurélien Geron e90606bf69 No need to update tqdm in Colab anymore 2020-07-25 17:08:31 +12:00
Aurélien Geron 05622d26b8 Fix early stopping example, fixes #190 2020-07-06 20:46:48 +12:00
Aurélien Geron df651cafb6 Merge branch 'master' of github.com:ageron/handson-ml2 2020-07-06 20:42:38 +12:00
Aurélien Geron dbfb7e8bff Fix early stopping example, fixes #190 2020-07-06 20:42:26 +12:00
Aurélien Geron b575063c7e Merge pull request #163 from rickiepark/upstream
[Chapter 2] Fix colorbar ticks
2020-07-05 18:46:48 +12:00
Aurélien Geron a5f584c021 Merge pull request #154 from Quoding/patch-1
Fix typo in the word "enviromnent"
2020-07-05 18:43:50 +12:00
Aurélien Geron 4a48d04a1a Add a comment about sklearn.metrics.plot_confusion_matrix, fixes #142 2020-07-05 18:35:06 +12:00
Haesun Park 42196c4235 fix colorbar ticks 2020-05-09 11:40:30 +09:00
Quoding 6585a20db6 Fix typo in the word "enviromnent"
"enviroment" -> "environment"
2020-04-30 13:04:34 -04:00
Aurélien Geron cdfad2d003 Link to matrix multiplication and Hadarmard product 2020-04-24 16:54:38 +12:00
Aurélien Geron 8fb49ea7e0 plt.hist() normed renamed to density 2020-04-24 16:49:42 +12:00
Aurélien Geron 8b00e3130d Solution 9 version 4 requires TF 2.2 (add warning) 2020-04-22 19:59:35 +12:00
Aurélien Geron 1f0bbc782a Add more examples of TF-Addons seq2seq usage 2020-04-22 19:21:56 +12:00
Aurélien Geron 0f35b8192f Merge branch 'master' of github.com:ageron/handson-ml2 2020-04-21 21:14:22 +12:00
Aurélien Geron 2993c68490 Fix toc, imshow default interpolation, and detail animation rendering 2020-04-21 21:14:10 +12:00
Aurélien Geron 2a7a849d72 Merge pull request #151 from davidcotton/master
Fix typo in 'Gradient Descent, revisited' section
2020-04-21 18:02:57 +12:00
dave 326fa9ca89 Fix typo in 'Gradient Descent, revisited' section 2020-04-21 11:45:59 +10:00
Aurélien Geron ab97bf435b Fix derivative of sqrt(x) 2020-04-20 14:50:27 +12:00
Aurélien Geron 3fe4b8d4f8 Fix comment about nbagg backend for animations 2020-04-20 10:55:20 +12:00
Aurélien Geron 5fcf4bdb16 Switch to jshtml to render animations 2020-04-20 10:51:33 +12:00
Aurélien Geron d46228a6af Fix test_set should be based on eval_files[5:], not eval_files[:5], fixes #144 2020-04-19 16:21:00 +12:00
Aurélien Geron 397d2600f7 Add the transformers library, along with spacy and ftfy 2020-04-19 16:15:29 +12:00
Aurélien Geron ffd127eb7a Add solutions to the coding exercises: Embedded Reber grammars, Encoder-Decoder and text generation using the transformers library 2020-04-19 16:01:14 +12:00
Aurélien Geron c19a208c95 Clarify function vs curve 2020-04-12 23:32:03 +12:00
Aurélien Geron 500c53756b Fix Hessian notation 2020-04-12 20:28:34 +12:00
Aurélien Geron 6285443c78 Fix notebook name 2020-04-12 18:59:42 +12:00
Aurélien Geron 6d1f490789 Fix link to Colab 2020-04-12 18:51:07 +12:00
Aurélien Geron 78f33162fb Point to the autodiff notebook in index.ipynb and math_differential_calculus.ipynb 2020-04-12 18:47:26 +12:00
Aurélien Geron 1451060165 Update autodiff notebook to TF 2.x 2020-04-12 18:43:31 +12:00
Aurélien Geron 15b5ba5e10 Add a notebook about differential calculus (derivatives and gradients) 2020-04-12 18:13:52 +12:00
Aurélien Geron 2f7ab70295 Update notebooks to latest nbformat 2020-04-06 19:13:12 +12:00
Aurélien Geron d507ec815a Update nbformat_minor 2020-04-06 18:57:38 +12:00
Aurélien Geron ba6c75d6e5 Update notebook 16 to TF 2.1 2020-04-06 15:22:22 +12:00
Aurélien Geron a22f9e578e Update requirements.txt 2020-04-03 22:17:57 +13:00
Aurélien Geron 0144200c9b Updated book_equations.ipynb and replaced it with a PDF, fixes #104 2020-04-03 21:37:33 +13:00
Aurélien Geron 1a19694d57 Fix some issues with TF 2.2 breaking changes 2020-04-02 12:52:31 +13:00
Aurélien Geron 6adb7253b5 In TF 2.2.0-rc1, validation_data expects tuples, not lists, fixes #131 2020-03-31 23:10:16 +13:00
Aurélien Geron 7b3d280a86 Fix error in commented out code, fixes #89 2020-03-31 21:39:51 +13:00
Aurélien Geron a357a93a57 Remove normalize=False in Audio since it does not work in Colab 2020-03-28 10:29:34 +13:00
Aurélien Geron 7eee161e7a Add the coding exercise solutions for chapter 15 (SketchRNN and Bach chorale generator) 2020-03-27 19:17:39 +13:00
Aurélien Geron 5965b04a60 Upgrade to recent library versions 2020-03-21 13:48:09 +13:00
Aurélien Geron 02e9847696 Add the coding exercise solutions for chapter 14 2020-03-21 13:37:05 +13:00
Aurélien Geron 9dafb01893 Add the coding exercise solutions for chapter 13 2020-03-20 23:22:47 +13:00
Aurélien Geron ad5de24b46 Install latest version of tqdm when using Colab 2020-03-16 21:14:25 +13:00
Aurélien Geron 1444403414 Add the coding exercise solutions for chapter 12 2020-03-16 18:51:30 +13:00