Hi Reader,
In case you haven’t checked out the Data School blog in a while, I’ve published a few new posts:
These are expanded versions of past Tuesday Tips!
SQL Tutorial for Data Scientists & Data Analysts (free)
Although Python dominated the “Top Programming Languages of 2023”, SQL took first place when ranked by job postings 🥇 (source).
If you’re looking to learn SQL, the tutorial above includes 30+ lessons and 40+ practice problems you can try directly in the browser, some of which were sourced from real Data Science interviews!
When faced with a new classification problem, Machine Learning practitioners have a dizzying array of algorithms from which to choose: Naive Bayes, decision trees, Random Forests, XGBoost, neural networks, and many others.
Where should you start? For many practitioners (including myself), the first algorithm to reach for is one of the oldest in the field: Logistic regression.
Here are a few attributes of logistic regression that make it incredibly popular:
In other words, it helps you to get going quickly with your Machine Learning project! You can focus your energy on building your initial ML pipeline (from data ingestion to prediction) without spending much computational time or code on model training and tuning.
Although you can use a ML algorithm without truly understanding it, learning how it works will ultimately help you to develop an intuition for when to use it and how to tune it.
To gain that deeper understanding, I recommend reading this lesson from my Data Science course:
🔗 Logistic regression lesson (Jupyter notebook)
During this lesson, you’ll learn:
If you get stuck on any of the concepts in the lesson, the resources listed in my logistic regression guide will help you to get un-stuck!
If you’ve decided to use logistic regression, you’ll need to tune it in order to maximize its performance. I’ve got a short video that will teach you how to tune logistic regression in scikit-learn:
🔗 Important tuning parameters for LogisticRegression (video)
For more details, check out the scikit-learn documentation.
If you enjoyed this week’s tip, please forward it to a friend! Takes only a few seconds, and it really helps me grow the newsletter! 🚀
See you next Tuesday!
- Kevin
P.S. I thought you said this was a linear system
Did someone awesome forward you this email? Sign up here to receive Data Science tips every week!
Join 25,000+ intelligent readers and receive AI tips every Tuesday!
Hi Reader, Last week, I encouraged you to experiment with different LLMs, since there’s no one model that is superior across all use cases. Specifically, I suggested you try using Chatbot Arena, which allows you to chat with multiple models at once. It’s completely free, but has two significant disadvantages: Your chats are not private and may be used for research. It lacks the feature-rich interface provided by other LLMs. Today, I want to offer you a better method for experimenting with...
Hi Reader, Over the past 50 tips, I’ve touched on many different topics: Python, Jupyter, pandas, ML, data visualization, and so on. Going forward, I’m planning to focus mostly on Artificial Intelligence. I’m announcing this so you know what to expect, and I know what to deliver! 💌 I’ll also try to make the tips shorter, so that they're easier to digest on-the-go. Finally, I plan to include an “action item” each week, so that you can practice what you’re learning. I hope you like these...
Hi Reader, Next week, I’ll be offering a Black Friday sale on ALL of my courses. I’ll send you the details this Thursday! 🚨 👉 Tip #50: What is a "method" in Python? In Python, a method is a function that can be used on an object because of the object's type. For example, if you create a Python list, the "append" method can be used on that list. All lists have an "append" method simply because they are lists: If you create a Python string, the "upper" method can be used on that string simply...