Giter VIP home page Giter VIP logo

dyavadi8769 / boston_housing_price_prediction_ml_project Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.88 MB

This repository contains a machine learning project aimed at predicting housing prices in Boston. This project showcases the end-to-end process of building and deploying a machine learning model, from data preprocessing and model training to serialization and deployment.

License: Apache License 2.0

Jupyter Notebook 99.82% Python 0.04% HTML 0.13% Procfile 0.01% Dockerfile 0.01%
data-preprocessing deployment model-training-and-evaluation serialization standarization linear-regression machine-learning exploratory-data-analysis postman-api

boston_housing_price_prediction_ml_project's Introduction

Boston_Housing_Price_Prediction

Project Overview

This is a comprehensive machine learning project focused on predicting housing prices in Boston. It encapsulates the entire workflow of a machine learning project right from data acquisition and preprocessing, through model training with Linear Regression, to deployment. The project highlights techniques like exploratory data analysis, feature standardization, and model serialization. Deployed via Docker containers and Heroku, this project is a practical demonstration of using machine learning to address real-world issues in real estate pricing.

Steps Involved

  1. Data Handling: Acquisition and preprocessing of the Boston housing dataset.
  2. Exploratory Data Analysis: Statistical analysis and visualization to understand underlying patterns.
  3. Feature Engineering: Standardization and normalization to improve model performance.
  4. Model Training: Implementation of Linear Regression and performance evaluation using metrics like RMSE.
  5. Deployment: Deployment of the trained model using Docker and Heroku for real time predictions.
  6. CI/CD Pipeline: Automated updates and deployment through GitHub Actions.

Independent Features

  1. CRIM - Crime Rate Per Capita
  2. ZN - Proportion of Residential Land Zoned
  3. INDUS - Proportion of Non-Retail Business Acres
  4. CHAS - Charles River Adjacency (Dummy Variable)
  5. NOX - Nitric Oxides Concentration (ppm)
  6. RM - Average Rooms Per Dwelling
  7. AGE - Proportion of Pre-1940 Built Homes
  8. DIS - Weighted Distance to Employment Centers
  9. RAD - Accessibility to Radial Highways Index
  10. TAX - Property Tax Rate Per $10,000
  11. PTRATIO - Pupil-Teacher Ratio by Town
  12. B - Proportion of Black Residents (Transformed)
  13. LSTAT - Percentage of Lower Status Population

Software and Tools Requirements

  1. [Github Account] (https://github.com/)
  2. [VS Code IDE] (https://code.visualstudio.com/)
  3. [Heroku Account] (https://dashboard.heroku.com/)
  4. [Git Cli] (https://git-scm.com/downloads)

Create a Virtual Environment in VS Code

conda create -p venv python==3.11.7 -y

Activate the virtual environment in the cmd prompt using

conda activate venv/

Building Docker Images

Dockers helps in setting base configurations which will eliminate all the issues like configuration issues, hardware issues, OS issues

Checking the model prediction using Postman

Run the command in command prompt:

python app.py

Check the model prediction by sending the below json text using postman REST API at http://127.0.0.1:5000:

{
    "data": {
        "CRIM": 0.00632,
        "ZN": 18.2,
        "INDUS": 2.31,
        "CHAS": 0,
        "NOX": 0.538,
        "RM": 6.575,
        "AGE": 25.0,
        "DIS": 4.09,
        "RAD": 1,
        "TAX": 296,
        "PTRATIO": 15.3,
        "B": 396.6,
        "LSTAT": 4.98
    }
}

Contributing

Contributions to this project are Welcome. Please fork the repository and submit a pull request.

boston_housing_price_prediction_ml_project's People

Contributors

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