Giter Club home page Giter Club logo

dhwass / xgboost-on-home-data-kaggle Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 225 KB

In this project, XGBoost is applied to forecast real estate prices using the Boston Housing Dataset. The primary aim is to create an effective predictive model, assess its accuracy through metrics like Mean Absolute Error (MAE), and refine its performance by tuning hyperparameters with HYPEROPT.

Home Page: https://www.kaggle.com/code/wasswassss/xgboost-on-home-data/notebook

Jupyter Notebook 100.00%
boston-housing-price-prediction data-science hypertuning kaggle kaggle-dataset machine-learning machine-learning-algorithms xgboost xgboost-model xgboost-regression

xgboost-on-home-data-kaggle's Introduction

XGBoost on Boston Housing Dataset

Context

In this project, I use XGBoost, a powerful machine learning library, to predict real estate prices. The goal is to build a predictive model, evaluating the performance and tuning hyperparameters for optimal results.

Content

Data Pre-processing

Encoding Categorical Columns

Categorical columns are encoded to facilitate model training by converting them into a numerical format.

Handling Missing Values

The project addresses missing values in the dataset through appropriate strategies to ensure data integrity.

Building the Model

DMatrix

The DMatrix object is used to efficiently handle the dataset, optimizing it for XGBoost.

Splitting the Data

The dataset is divided into training and testing sets to assess the model's performance accurately.

Model Setting / Parameters

This section covers the configuration of model settings and parameters to achieve the desired outcome.

Testing Model's Performance

Computing MAE

Mean Absolute Error (MAE) is computed to quantify the model's prediction accuracy.

Hyperparameters Tuning using HYPEROPT

The project explores hyperparameter tuning using the HYPEROPT library to enhance the model's performance.

K-fold Cross Validation

K-fold Cross Validation is employed to assess the model's robustness and generalization across different subsets of the data.

Feature Importance

An analysis of feature importance is conducted to understand the variables that significantly impact the model's predictions.

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.