Archive | Intermediate Data Science

michael-held-w6xU735k6LU-unsplash

Branching Out: Exploring Tree-Based Models for Regression

Our discussion so far has been anchored around the family of linear models. Each approach, from simple linear regression to penalized techniques like Lasso and Ridge, has offered invaluable insights into predicting continuous outcomes based on linear relationships. As we begin our exploration of tree-based models, it’s important to reiterate that our focus remains on […]

Continue Reading
lan-deng-eAWFUVw9OX0-unsplash

Filling the Gaps: A Comparative Guide to Imputation Techniques in Machine Learning

In our previous exploration of penalized regression models such as Lasso, Ridge, and ElasticNet, we demonstrated how effectively these models manage multicollinearity, allowing us to utilize a broader array of features to enhance model performance. Building on this foundation, we now address another crucial aspect of data preprocessing—handling missing values. Missing data can significantly compromise […]

Continue Reading
jeffrey-f-lin-SR5-47jmobs-unsplash

Scaling to Success: Implementing and Optimizing Penalized Models

This post will demonstrate the usage of Lasso, Ridge, and ElasticNet models using the Ames housing dataset. These models are particularly valuable when dealing with data that may suffer from multicollinearity. We leverage these advanced regression techniques to show how feature scaling and hyperparameter tuning can improve model performance. In this post, we’ll provide a […]

Continue Reading
ryan-stone-sOLbaTbs5mU-unsplash

Detecting and Overcoming Perfect Multicollinearity in Large Datasets

One of the significant challenges statisticians and data scientists face is multicollinearity, particularly its most severe form, perfect multicollinearity. This issue often lurks undetected in large datasets with many features, potentially disguising itself and skewing the results of statistical models. In this post, we explore the methods for detecting, addressing, and refining models affected by […]

Continue Reading
quinten-de-graaf-L4gN0aeaPY4-unsplash

The Power of Pipelines

Machine learning projects often require the execution of a sequence of data preprocessing steps followed by a learning algorithm. Managing these steps individually can be cumbersome and error-prone. This is where sklearn pipelines come into play. This post will explore how pipelines automate critical aspects of machine learning workflows, such as data preprocessing, feature engineering, […]

Continue Reading
joakim-aglo-rr-euqNcCf4-unsplash

Capturing Curves: Advanced Modeling with Polynomial Regression

When we analyze relationships between variables in machine learning, we often find that a straight line doesn’t tell the whole story. That’s where polynomial transformations come in, adding layers to our regression models without complicating the calculation process. By transforming our features into their polynomial counterparts—squares, cubes, and other higher-degree terms—we give linear models the […]

Continue Reading
zac-durant-_6HzPU9Hyfg-unsplash

Interpreting Coefficients in Linear Regression Models

Linear regression models are foundational in machine learning. Merely fitting a straight line and reading the coefficient tells a lot. But how do we extract and interpret the coefficients from these models to understand their impact on predicted outcomes? This post will demonstrate how one can interpret coefficients by exploring various scenarios. We’ll explore the […]

Continue Reading
sutirta-budiman-eN6c3KWNXcA-unsplash

One Hot Encoding: Understanding the “Hot” in Data

Preparing categorical data correctly is a fundamental step in machine learning, particularly when using linear models. One Hot Encoding stands out as a key technique, enabling the transformation of categorical variables into a machine-understandable format. This post tells you why you cannot use a categorical variable directly and demonstrates the use One Hot Encoding in […]

Continue Reading
joanna-kosinska--ayOfwsd9mY-unsplash

The Search for the Sweet Spot in a Linear Regression with Numeric Features

Consistent with the principle of Occam’s razor, starting simple often leads to the most profound insights, especially when piecing together a predictive model. In this post, using the Ames Housing Dataset, we will first pinpoint the key features that shine on their own. Then, step by step, we’ll layer these insights, observing how their combined […]

Continue Reading
mahrous-houses-kUCTWQG9IJo-unsplash

The Strategic Use of Sequential Feature Selector for Housing Price Predictions

To understand housing prices better, simplicity and clarity in our models are key. Our aim with this post is to demonstrate how straightforward yet powerful techniques in feature selection and engineering can lead to creating an effective, simple linear regression model. Working with the Ames dataset, we use a Sequential Feature Selector (SFS) to identify […]

Continue Reading

Machine Learning Mastery is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Visit our corporate website to learn more about our mission and team.