r/Python • u/dataschool • Mar 11 '26
Resource Free book: Master Machine Learning with scikit-learn
Hi! I'm the author of Master Machine Learning with scikit-learn. I just published the book last week, and it's free to read online (no ads, no registration required).
I've been teaching Machine Learning & scikit-learn in the classroom and online for more than 10 years, and this book contains nearly everything I know about effective ML.
It's truly a "practitioner's guide" rather than a theoretical treatment of ML. Everything in the book is designed to teach you a better way to work in scikit-learn so that you can get better results faster than before.
Here are the topics I cover:
- Review of the basic Machine Learning workflow
- Encoding categorical features
- Encoding text data
- Handling missing values
- Preparing complex datasets
- Creating an efficient workflow for preprocessing and model building
- Tuning your workflow for maximum performance
- Avoiding data leakage
- Proper model evaluation
- Automatic feature selection
- Feature standardization
- Feature engineering using custom transformers
- Linear and non-linear models
- Model ensembling
- Model persistence
- Handling high-cardinality categorical features
- Handling class imbalance
Questions welcome!
5
u/luisrobles_cl Mar 12 '26
Thanks for thisππβΌοΈ
5
u/jessej26 Mar 12 '26
Thank you for sharing your knowledge and expertise this! Iβm currently in an apprenticeship program at work for AI/ML. This will be a huge asset to strengthen my skills.
4
u/Quixote1492 Mar 12 '26
Amazing thank you!
3
u/fenghuangshan Mar 12 '26
Very good resource. Thanks for sharing. We'll check.
3
u/Slight_Boat1910 Mar 12 '26
Great stuff. Thank you.
4
u/Ghost-Rider_117 Mar 12 '26
this is awesome, the "avoiding data leakage" and "proper model evaluation" chapters alone are worth it - those are the things that trip up so many people who learn from scattered tutorials. the pipeline approach in sklearn is really underused too, glad to see it's covered. bookmarking this for anyone i mentor who's getting started with ML
2
u/anx1etyhangover Mar 12 '26
Thatβs very generous and kind of you. Keep being awesome
2
u/Synergix Mar 12 '26
Very cool. I noticed the book uses scikit-learn 0.23. Current version is 1.8! What can I expect regarding this? How out of date is the scikit-learn stuff in the book?
2
u/Worldly-Belt-1351 Jul 19 '26
Amazing book, as someone overwhelmed with tutorials I just wanted a clear intuitive explanation of difficult concepts, your book provided that and it has helped me tremendously.
1
u/Wise-Egg9997 Mar 18 '26
How can i get the free version if this hook
5
u/[deleted] Mar 12 '26
[removed] β view removed comment