|
Hi Reader, I appreciate everyone who has emailed to check on me and my family post-Helene! It has been more than 6 weeks since the hurricane, and most homes in Asheville (mine included) still don't have clean, running water. We're hopeful that water service will return within the next month. In the meantime, we're grateful for all of the aid agencies providing free bottled water, free meals, places to shower, and so much more. ❤️ Thanks for allowing me to share a bit of my personal life with you! Now, back to the Data Science. 😄 🔗 Link of the weekThe Present Future: AI's Impact Long Before Superintelligence (Ethan Mollick) A short, compelling article demonstrating the impact that today's multimodal models can achieve when interacting with the real world! 👉 Tip #49: Calculating the confidence of your classifierAlthough Generative AI is the focus of everyone's attention (I'm even working on a GenAI course! 😲), supervised Machine Learning is still the optimal tool for solving most real-world predictive problems. Today's tip answers the question: How certain is my classification model about its predictions? It comes directly from my course, Master Machine Learning with scikit-learn. Let's say you need to predict whether individual users are likely to buy your product. You might build a classifier that outputs "1" if they are likely to buy, and "0" otherwise: But what if there were 50,000 users who are likely to buy, but you can only afford to market to 500 of them? In that case, you would use your marketing budget to reach the 500 users who are most likely to buy. In Machine Learning terms, we're looking for the users with the highest "predicted probability" of buying. Here's how we would find these users: Here's what we did:
Because we're using a well-calibrated classifier called logistic regression, these predicted probabilities can be directly interpreted as the model's confidence in each prediction. In this example, the model thinks the 8th user is the most likely to buy since they have the highest predicted probability (0.612). Conclusion: If you had 50,000 users and you needed to choose which 500 users to target, you would calculate the predicted probability for all 50,000 and then select the 500 users with the highest probabilities! Did you enjoy this short lesson? There are 148 more video lessons like this in my newest ML course, Master Machine Learning with scikit-learn! 👋 See you next week!If you liked this week's tip, please share it with a friend! It really helps me out. - Kevin P.S. I spent my entire life savings on pasta 🍝 Did someone AWESOME forward you this email? Sign up here to receive more Data Science tips! |
Join 25,000+ intelligent readers and receive AI tips every Tuesday!
Hi Reader, I just published a new YouTube video: How to use top AI models on a budget Description: Want to chat with the best AI models from OpenAI, Claude, and Google without paying $20/month? I'll show you how to use API keys with TypingMind to access top models for a fraction of the cost, demonstrate its killer feature of chatting with multiple models side-by-side, and explain when paying for a subscription is actually the smarter choice. Timestamps: 0:00 Introduction 0:37 Pay-per-token...
Hi Reader, On Friday, I announced my forthcoming book, Master Machine Learning with scikit-learn. In response, my Dad asked me: How does the subject of this book relate to Artificial Intelligence? In other words: What's the difference between AI and Machine Learning? Ponder that question for a minute, then keep reading to find out how I answered my Dad... 👇 AI vs Machine Learning Here's what I told my Dad: You can think of AI as a field dedicated to creating intelligent systems, and Machine...
Hi Reader, Yesterday, I posted this announcement on LinkedIn and Bluesky and X: Kevin Markham @justmarkham Dream unlocked: I'm publishing my first book! 🎉🎉🎉 It's called "Master Machine Learning with scikit-learn: A Practical Guide to Building Better Models with Python" Download the first 3 chapters right now: 👉 https://dataschool.kit.com/mlbook 👈 Thanks for your support 🙏 1:47 PM • Sep 11, 2025 1 Retweets 5 Likes Read 1 replies This has been a dream of mine for many years, and I'm so excited...