Git Product home page Git Product logo

gradient-boosting-regression's Introduction

Gradient-Boosting-Regression

I used gradient boosting regression and random forest regression to predict real estate prices for the kaggle competition titled "House Prices: Advanced Regression Techniques"

fig1

Data Cleaning

Data: The data for this analysis can be found at https://www.kaggle.com/c/house-prices-advanced-regression-techniques/data

There are 37 features in the dataset that describe physical attributes of each house.

fig2

Figure 1: Heat map showing the correlation among features

This dataset required a lot of cleaning due to the number of NAs:

fig2

I filled in NAs for features where it was logical to do so, and removed those that had more than 80% missing.

Additionally many features were skewed, including the response variable Price:

fig2

I used a box cox transformation on skewed features, and a log transformation on the response variable.

Modeling

I applied both a gradient boosting regression model and a random forest regressor to predict price.

Hyperparameters were optimized using RandomGridSearch. For the gradient boosting regression model, I optimized:

fig2

I optimized the following hyperparameters for the random forest regressor:

fig2

The two models were compared given cross validation scores; the gradient boosting regressor had superior performance.

The gradient boosting regression model performed with a RMSE value of 0.1308 on the test set, not bad!

Additional explanations and code can be found at: https://towardsdatascience.com/home-value-prediction-2de1c293853c?source=friends_link&sk=704e52c7130e767aa32d6f6bae9678b9

gradient-boosting-regression's People

Contributors

njermain avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.