My new book just came out! 🎉😊
Kindle & e-book available now, print within 1–2 weeks.
You can get it at: homl.info/
(you'll also find free online content there)
Play with the notebooks at:
github.com/ageron/handson-ml…
Hope you'll find it useful!
Fake demos, CGI vaporware, teleoperated robots barely capable of walking, cars that help you crash, traffic jams under malls (=Hyperloop), buses so low they would crash into speed bumbs... Remove the hype and subsidies and all that's left is lies and dreams of oligarchy.
This is 100% #JuliaLang code. It trains a dense neural network using the #Keras Python library. If you replace the first 3 lines with "import tensorflow as tf; from tensorflow import keras", you can run the exact same code in Python. Talk about excellent interoperability! 🤝
I wrote a Matplotlib tutorial notebook:
colab.research.google.com/gi…
You'll learn how to make beautiful plots and animations, including, most importantly, XKCD-style plots:
Scikit-Learn ❤️ Pandas
I wrote a quick tutorial notebook on the new feature-name tracking features in Scikit-Learn 1.0:
homl.info/sklearn-pandas
They're a first step towards full DataFrame support
(Pandas in ⟶ Pandas out).
Hurray!!! 🥳 The 2nd edition of my book is available on Kindle (homl.info/amazon2) and eBooks (homl.info/ebook2)! The paper edition should be available within ~2 weeks. 🦎
Look what I just received! 🎉 Awesome book by @fchollet, he's put a huge amount of work into this 2nd edition. Excellent clear and intuitive explanations, just like in the 1st edition, plus plenty of great new Deep Learning content. Well done!
If you'd like to learn the @JuliaLanguage and you know Python, then this tutorial Colab notebook is for you. I just updated it to the latest Julia 1.7.1 version:
colab.research.google.com/gi…
Enjoy! 🙂
Cornell's excellent Machine Learning course is entirely online, for free, including all the lectures on YouTube and all the course notes:
cs.cornell.edu/courses/cs478…
That's the bright side of the Internet: so much knowledge freely available! 🙌😀
Just received the first copy of my book (3rd edition), woohoo! 🦎🎉😁
You can get it at:
homl.info/amazon3
Play with the notebooks at:
github.com/ageron/handson-ml…
See what's new at:
homl.info/changes3
Huge tx to everyone who made it happen!!! 🙏
Hope you'll find it useful!
I 💕 #JuliaLang !
It looks & feels like Python, with the speed of C++, the parallelism of Go, batteries included (especially for #DataScience), metaprog like Lisp, great libraries and a welcoming community.
I wrote a Julia tutorial for Python programmers: come & join the party!
Is there still an active ML community on X? If there is, the platform is not showing it to me anymore.
The ratio of interesting ML posts in my feed has dropped from perhaps 25% to 1% or less since Musk took over.
I'm muting all the memes and propaganda, but it just won't stop. 💩
Two more chapters available in the early release! homl.info/er2
* 16: Processing sequences (eg. time series) using RNNs (eg. LSTM, GRU) and CNNs (eg. Wavenet).
* 17: Natural Language Processing using RNNs (Encoder-Decoder) and Attention models (Transformer).
Enjoy! 🦎
Inside a Jupyter notebook:
BAD:
!pip install somelib # may install in the wrong environment!
or
!conda install somelib # same problem
GOOD:
import sys
!{sys.executable} -m pip install somelib
or
!conda install --yes --prefix {sys.prefix} somelib
Two more chapters have just been added to the Early Release of the second edition of my book:
Chapter 10: Intro to Neural Nets with Keras
Chapter 11: Deep Learning Techniques (batch norm, dropout, optimizers, self-normalizing nets, and much more!)
homl.info/er2 🦎
Woohoo! The last 3 chapters are now in the early release:
17. Representation Learning and Generative Learning Using Autoencoders and GANs
18. Reinforcement Learning (includes TF Agents)
19. Training and Deploying TensorFlow Models at Scale
🦎
homl.info/er2
In @TensorFlow 1.9, it is much easier to use Keras with the Data API: just pass data iterators, specify the number of steps per epoch, and you're good to go! Plus it works in both graph mode and eager mode, kudos to the TF team!
Just pushed 2 more #TensorFlow 2 notebooks! The 1st covers how to process sequences (e.g., time series) using RNNs & CNNs. The 2nd covers NLP using RNNs, Encoder–Decoders & Attention (including Transformers). See below for the full menus. Bon appétit ! 👨🍳 github.com/ageron/handson-ml…
Just finished rewriting the ConvNet chapter! 😅
Now includes building ResNet-34 in #TensorFlow 2 (see image), fine-tuning a pretrained model, object detection and image segmentation.
I pushed the notebook: github.com/ageron/handson-ml…
@TensorFlow 2.0 preview is here! 🥳
I wrote a few Jupyter notebooks to teach #DeepLearning using tf.keras and TF 2.0, I hope you'll find them useful! Teachers, you are more than welcome to use them in your own courses.
github.com/ageron/tf2_course
Just pushed a notebook that covers loading and preprocessing data efficiently using #TensorFlow 2. It includes code examples for the data API, TFRecords & the Features API (+ short examples of TF Transform, TF datasets and TF Hub). Enjoy!
👉 Notebook 13 in github.com/ageron/handson-ml…
Just finished the #TensorFlow 2 chapter for the upcoming 2nd edition of my #HandsOnML book. As a picture is worth a thousand words, here's a peek at one of the figures about @TensorFlow Functions. Looking forward to the #TFDevSummit ! 😀
Woo-hoo! Here's the full list of translations available so far for the 1st and 2nd edition of my book: homl.info/get/
The fish isn't sure what it's doing here.
Online conferences are the best:
* attend in pyjamas, pause, rewind, listen x1.5, never miss a talk
* no travel costs, anyone in the world can join, rich or poor
* talks can reach thousands of people, not just a room-full
* and waaaaaaaaay less CO2
I just had the chance to review "Natural Language Processing with Transformers" by @_lewtun, @lvwerra and @Thom_Wolf from 🤗@huggingface: it's a fantastic book! Very clear, hands-on, and packed with helpful tips & tricks.
Check out the early release:
learning.oreilly.com/library…
My cousin is an anesthetist doctor in France. She caught the virus, got better, and now she's back on the front line in one of the busiest hospitals in Paris. She's my hero.👩⚕️👏
The Early Release of the 3rd edition of my book is now available! homl.info/er3 🎉
It currently includes the first 9 chapters, raw & unedited.
It's the same overall structure as the 2nd edition, but with many improvements:
Einops simplifies and clarifies array/tensor manipulation. 👍
You really have to try it out, you'll love it: github.com/arogozhnikov/eino…
Plus it supports NumPy, TensorFlow, PyTorch, and more.
I used to prefer Jupyter Notebook over Jupyter Lab: simpler & cleaner UI.
But I recently gave Jupyter Lab another shot, and I ❤️ it:
✓ it has a debugger
✓ it's customizable & one click gives you a simplified UI.
👇
pip install jupyterlab # or conda install
jupyter lab
I just uploaded a short video to explain 3 concepts from Shannon's Information Theory that are frequently used in Machine Learning: entropy, cross-entropy and KL divergence. I hope you'll enjoy it!
piped.video/ErfnhcEV1O8
Want to learn how to build a sequence-to-sequence Encoder-Decoder using Keras, or using TF-Addons' seq2seq API? If so, check out the solution to exercise 9 in this notebook:
colab.research.google.com/gi…
Did you know you can start a server inside Colab and access it remotely?
E.g., the following code starts a TensorBoard server, and displays the UI inside Jupyter (as usual), but it also adds a link at the top: if you click it, you'll access the TensorBoard server in another tab.
I just uploaded a new video! It's a brief overview of the many improvements to come in @TensorFlow 2.0: eager execution by default, easy to combine with graph mode for performance and portability, a more object-oriented design, and a big cleanup. Enjoy!
piped.video/watch?v=WTNH0tcs…
My son's learning programming and he's shocked that a[1:3] means the *second* and third element in most programming languages.
Who decided this was a good idea?
Indexing in Julia (and other math-oriented languages) feels so much more natural—once you've unlearned 0-indexing.
Awesome book, with clear and engaging explanations, tons of useful practical tips and simple code examples to build state-of-the-art models. Congrats @jeremyhoward and @GuggerSylvain ! 👍
We've made a draft of our deep learning book available as @ProjectJupyter notebooks.
Important: This is for personal use, and not licensed for any redistribution or change of format or medium. Eg. don't make a PDF and share it, please!
github.com/fastai/fastbook
It's 2040. A team of researchers formulates a comprehensive mathematical theory of intelligence. Due to information-flow constraints, it turns out there's an upper limit to intelligence, dubbed Einstein's Razor, and humans are near optimal. The singularity is thus impossible. 1/6
Btw, if you'd like to know how to create an interactive world map like this one, it's actually very simple using plotly's choropleth() function.
Here's the Colab notebook with the whole code, it's just 8 simple cells:
colab.research.google.com/gi…
Have you ever used Scikit-Learn's TransformedTargetRegressor? It's pretty convenient when your targets need to be preprocessed.
For example, if they have widely different scales, it's probably best to predict log(targets), then compute exp(predictions). Like this:👇
LeNet-5, AlexNet, GoogLeNet, ResNet, SENet, Xception, ResNeXt, DenseNet, MobileNet, CSPNet, and EfficientNet.
Can you think of any other CNN-only image classification model that really should be introduced (briefly or not) in the 3rd edition of my book? Thanks for your help! 🙏
In the Transformer architecture (arxiv.org/abs/1706.03762), a Positional Embedding (PE) is added to each word embedding. This allows the model to know the word positions, both absolute and relative. Here's a diagram to understand how it works. 🦎
The Python installer does not install the root SSL certificates automatically on macOS. As a result, many people get a SSL: CERTIFICATE_VERIFY_FAILED error, and proceed to just deactivate SSL certificate verification. It's a common "answer" found online. Please don't do this! 🙏
A few years ago, I founded an A.I. consulting company which I named Kiwisoft. When I later moved to New Zealand, I found out that it's the name of a popular brand of toilet paper here. 🧻
Two more chapters in the early release (homl.info/er2)! 🦎
13=loading and processing data using tf.data, the features API, TFRecords, and more.
14=deep computer vision (image classification, object detection, semantic segmentation, etc.).
Enjoy!
The 3rd edition of my book is being printed, it will be released within the next few weeks! 📙🦎🎉😁
You can preorder it at homl.info/amazon3
You can play with the notebooks at github.com/ageron/handson-ml…
It covers many new topics, including diffusion models:
Yes, sadly I can confirm that I've had several months with almost no royalties despite my book being in Amazon's best seller list. Plus many negative reviews from readers complaining about poor quality print. Amazon benefits from counterfeit, so they turn a blind eye. 😰
Q: Does this affect any other book?
A: Absolutely. It affects nearly all high sale volume technical books on Amazon. If you've bought a technical book on Amazon recently there's a >50% chance it's a fake.
E.g.
@aureliengeron's book is also heavily affected, etc.
I greatly enjoyed this paper! 👍 It provides conceptual and technical tools to progress towards AGI. I wrote a TFDS dataset so you can load it as a TF dataset simply with tfds.load("arc"). You can play with it in this Colab notebook:
colab.research.google.com/dr…
I've just released a fairly lengthy paper on defining & measuring intelligence, as well as a new AI evaluation dataset, the "Abstraction and Reasoning Corpus". I've been working on this for the past 2 years, on & off.
Paper: arxiv.org/abs/1911.01547
ARC: github.com/fchollet/ARC
Congrats François! 🥳
This is a fantastic book, highly recommended reading for anyone who wants to learn ML. Super clear, with excellent code, explanations, analogies and insights.
Announcement: my book Deep Learning with Python (2nd edition) has been released.
500 pages of code examples, theory, context, practical tips... If you want to really understand how deep learning works, why it matters, and how to use it, this is your book!
manning.com/books/deep-learn…
Here's a simple #TensorFlow 2.0 example using TFDS, tf.data, and a custom layer with the same API as the upcoming Keras preprocessing layers. Hope it helps! 🦎
🗣 Attention #TensorFlow community!
We are excited to announce TensorFlow 2.0. Inspired by all of your feedback, this powerful and easy-to-use framework includes tight Keras integration, expanded TF datasets, and more.
Watch @lmoroney present here → goo.gle/2nTRZCp
O'Reilly just confirmed to me that they underestimated the number of copies to print in the 1st batch for Amazon. 😢The 2nd batch is much bigger and it should be available on Amazon around Nov 4th. In the meantime, bookstores like Barnes & Nobles seem to have copies available.
Wow, thanks a lot for your kind words, Tim! 😊
It's been a wild and exciting ride, and I feel incredibly grateful to everyone who helped me along the way. The field is moving so fast, I'm curious to see what this new decade will bring! 🦎
Ouch, my first accidental `rm -rf`! 😱
Fortunately, no serious data loss thanks to backups (just lost ~1 hour of work).
Any good protection against the evil rm -rf (other than growing a brain🧠)?
Just added code examples and exercises on #autodiff in @TensorFlow 2.0. Covers autodiff basics, computing 2nd order derivatives, how to write a custom training loop to train a Keras model, and how to use running metrics. See notebook #2 in github.com/ageron/tf2_course . Enjoy!
You might also be interested in my notebook about Auto-Differentiation: github.com/ageron/handson-ml…
It explains forward/reverse mode autodiff, it shows how to use TensorFlow's autodiff functionality, and explains how it works by implementing a tiny autodiff framework:
The TF-Agents library is a well-tested, open-source resource for your reinforcement learning projects. Check out this #io19 to learn how you can mix and match TF-Agent components to create all new RL algorithms.
See how it's done now → goo.gle/2vPMB41
No one looks up sin(x) on a sin table anymore, so why do statisticians still look up distributions on tables? 📜
If they don't, why do stats courses still use tables rather than, say, scipy.stats? 🤔
A simple linear model trained on a person's past decisions can actually outperform that person! For example, a linear model of a bail judge is better than that judge (on average) at predicting which suspects will skip bail or commit another crime. How can that be? 1/7
One more chapter added to the Early Release of the 2nd edition:
Chapter 12: Building custom models and training algorithms using #TensorFlow 2.0. Also includes autodiff, tf.function(), graphs in TF2, and more. Unlimited flexibility, unlimited POWER!
homl.info/er2 🦎
I am going off Facebook and Instagram & trying to delete my accounts. I cannot support an organization that pretends to support free speech, but actually enables hate speech. Neutrality in the midst of violence is violence. Bye bye Facebook. Bye bye Instagram. No more posts.
Just reached 10,000 subscribers on my YouTube channel, woohoo! 🥳
Thanks so much to all of you, I'm really thrilled!
As soon as I finish the 2nd edition of my book, I'll make more videos, promise! What topics would you like me to talk about?
#10kcreatorpiped.video/c/AurelienGeron
TensorFlow 2.0 will be released later this year! It will encourage eager execution and high level APIs (e.g., tf.keras), it will support more platforms & languages, and there will be a lot of cleanup (less duplication, tf.contrib moved to core or other projects, etc.).
I just pushed two Docker images to run the handson-ml2 project, with all the latest libs (incl. TensorFlow 2.4.1). docker pull ageron/handson-ml2 for CPU-only, and handson-ml2:latest-gpu for GPU support. 😅
See github.com/ageron/handson-ml… for more details.
StackOverflow is currently down, you can take the rest of your day off.
Or... you can still view the cached pages in Google search (see screenshot) or use wayback.archive.org.
Keras now supports JAX and PyTorch, as well as TensorFlow, woohoo! 🎉😊
I've tried running my notebooks on Keras Core, it worked like a charm, mostly a drop-in replacement for tf.keras.
We're launching Keras Core, a new library that brings the Keras API to JAX and PyTorch in addition to TensorFlow.
It enables you to write cross-framework deep learning components and to benefit from the best that each framework has to offer.
Read more: keras.io/keras_core/announce…
Variable scopes and the whole tf.get_variable() mess is going away! To share variables, just reuse #Keras layers, it's so much cleaner and intuitive. I can't wait for @TensorFlow 2.0!
github.com/tensorflow/commun…
I'm sorry if I sounded too aggressive, it's hard to be subtle on Twitter, unless you just censor yourself and never speak your mind.
I'm impressed by self-landing rockets and (partly) self-driving cars, of course. But Musk lies way too much.
I'm not impressed by Optimus at all.
A few people have reported poor-quality counterfeit copies of my book floating around. 😢
If you receive one of these, please return it to Amazon, report the seller, and write a bad review for them – be sure you're reviewing the seller and not the book! 🙏
Notebooks updated: added clustering, anomaly detection and mixture models in notebook 08, updated the Estimator API example in notebook 10, added a short example for TF's Data API in notebook 12, and updated notebooks to the latest libraries. Enjoy! github.com/ageron/handson-ml
Yet another great video by @veritasium. Matrix multiplications are at the core of Deep Learning. Since we generally don't need perfect precision, using specialized analog chips could be much faster, smaller, and energy efficient than GPUs or TPUs.
New video: a brief history of AI and why analog computers may be the future of deep neural networks.
piped.video/GVsUOuSjvcg
Let me know if you prefer any of these alternative thumbnails:
Btw, the 2nd edition will be fully in color! 🥳
I tried to keep color-blind readers in mind, though (e.g., I wrote "the dashed line on the diagram" rather than "the green line"). If you're color-blind, I'd love to get your feedback if you find some figures hard to read in color.
Just added some simple code examples (+an exercise) about reading/writing TFRecords in my TF 2 course Jupyter notebooks, in case you're interested (the .tfrecords format is @TensorFlow's preferred binary representation for large datasets).
github.com/ageron/tf2_course…
I just uploaded a new video! How to implement CapsNets using TensorFlow. Includes a few tricks that you may find useful for other models as well: efficiently multiplying many matrices in one shot, writing dynamic loops & conditional operations, and more. piped.video/2Kawrd5szHE
Back by popular demand, the Crash-course on deep learning 2, with Aurélien Géron, will take place on June 20, 24 & 26. Call for application deadline is June 7th. #AI#TensorFlow. Apply here: ow.ly/XIDh50uj4xN
If you want to understand automatic differentiation, grasp the difference between forward mode and reverse mode #autodiff, know how they impact performance and RAM usage, and play with simple toy implementations of each, check out my new notebook: github.com/ageron/handson-ml…
Wow! There's another guy called Géron who published *3* ML books about a month ago. All of them already have 70 super positive reviews on Amazon. Impressive! But I'm even more impressed by the reviewers: each of them rated ~10 books/day, every day, over the last month. Mmmh... 🕵️♂️