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...

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more