|
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 weekβThe 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, Until 8 PM ET tonight, you can get the All-Access Pass for $99: Here's everything you need to know: Access all existing courses for one year ($700+ value) Includes new courses launched during your subscription Includes e-book version of Master Machine Learning (coming soon) Additional discounts available Lock in this price forever 30-day refund policy Get the Pass for $99 Questions? Please let me know! - Kevin
Hi Reader, I wanted to share with you three limited-time resources for improving your Python skills... 1οΈβ£ Algorithm Mastery Bootcamp π₯Ύ Are you looking for an intense, 12-day Python bootcamp? My friend Rodrigo GirΓ£o SerrΓ£o is running a new Algorithm Mastery Bootcamp, and it starts in just 5 days! In the bootcamp, you'll solve 24 real programming challenges and participate in daily live sessions to discuss and compare solutions. It's a great way to strengthen your problem-solving muscles πͺ I...
Hi Reader, Last week, I launched the All-Access Pass, which gives you access to ALL of Data School's courses for one year. Through Black Friday, you can buy the pass for $99, after which the price will increase. Here are the included courses: Build an AI chatbot with Python ($9) Create your first AI app in 60 minutes using LangChain & LangGraph! β‘ Build AI agents with Python ($99) Develop the skills to create AI apps that can think and act independently π€ Conda Essentials for Data Scientists...