Giter VIP home page Giter VIP logo

india-housing's Introduction

Machine Learning Model Comparison

This repository contains Python code for comparing the performance of a Decision Tree Regressor and a Linear Regression model on a dataset.

Table of Contents

Introduction

This project aims to evaluate the effectiveness of two different machine learning models, a Decision Tree Regressor and a Linear Regression model, on a given dataset. The models are trained, evaluated using metrics like Mean Squared Error (MSE), Mean Absolute Error (MAE), and R-squared score, and compared based on their performance.

Setup Instructions

To run the code in this repository, follow these steps:

  1. Clone the repository:

    git clone https://github.com/KanishkThamman/India-Housing
    cd India-Housing
  2. Install the required dependencies: Ensure you have Python installed. Install necessary libraries using pip:

    pip install pandas matplotlib scikit-learn
  3. Run the Jupyter Notebook or Python script: Execute the main script or open the Jupyter Notebook:

    jupyter notebook main.ipynb

Usage

  1. Modify the dataset path or data loading code in the notebook/script (main.ipynb) to use your own dataset.
  2. Adjust hyperparameters or add more models for comparison as needed.
  3. Run cells sequentially to train models, tune hyperparameters, evaluate performance, and visualize results.

File Descriptions

  • main.ipynb: Jupyter Notebook containing Python code for model training, hyperparameter tuning, evaluation, and visualization.
  • README.md: This file, providing an overview of the project and instructions for usage.
  • House Price India.csv: This file provides the data.

Results

Decision Tree Regressor:

  • Achieved an R-squared score of 0.2.
  • Hyperparameters optimized using GridSearchCV.
  • Visualized decision tree structure.

Linear Regression:

  • Achieved an R-squared score of 0.5 (update with your actual score).
  • Provided a baseline comparison against the Decision Tree model.

License

This project is licensed under the MIT License

india-housing's People

Contributors

kanishkthamman avatar

Watchers

 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.