DEV Community

Cover image for Predicting Boston Housing Prices using Regression Models
Anurag Verma
Anurag Verma

Posted on

1

Predicting Boston Housing Prices using Regression Models

I recently worked on a project where I used various regression models to predict the prices of houses in the Boston Housing dataset. The goal was to identify which model would perform the best in terms of accuracy.

The dataset consists of 506 samples and 14 attributes, including the median value of owner-occupied homes in $1000's. I performed data preprocessing and feature selection to prepare the data for model training.

I trained and tested six different regression models: Linear Regression, Ridge Regression, Lasso Regression, ElasticNet Regression, Decision Tree Regression, and Random Forest Regression. I used scikit-learn library and visualized the results using Matplotlib.

The best-performing model was Random Forest Regression, with an accuracy of 89%.

You can find the details of the project and the code in the notebook link attached below:

Notebook Link

Sharing love and knowledge...

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay