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, This week, I've got a short tip about AI agents, followed by some Data School news... π Tip #56: What are AI agents? Google is calling 2025 "the agentic era," DeepLearning.AI says "the agentic era is upon us," and NVIDIA's founder says "one of the most important things happening in the world of enterprise is agentic AI." Clearly AI agents are a big deal, but what exactly are they? Simply put, an AI agent is an application that uses a Large Language Model (LLM) to control its...
Hi Reader, Last week, I launched a brand new course: Build an AI chatbot with Python. 120+ people enrolled, and a few have already completed the course! π Want to join us for $9? π Tip #55: Should you still learn to code in 2025? Youβve probably heard that Large Language Models (LLMs) are excellent at writing code: They are competitive with the best human coders. They can create a full web application from a single prompt. LLM-powered tools like Cursor and Copilot can autocomplete or even...
Hi Reader, The Python 14-Day Challenge starts tomorrow! Hope to see you there π€ π Tuesday Tip: My top 5 sources for keeping up with AI I'll state the obvious: AI is moving incredibly FAST π¨ Here are the best sources I follow to keep up with the most important developments in Artificial Intelligence: The Neuron (daily newsletter) My top recommendation for a general audience. Itβs fun, informative, and well-written. It includes links to the latest AI news and tools, but the real goldmine is...