Git Product home page Git Product logo

kaushalsalvatore / boston-price-prediction Goto Github PK

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

This is machine learning web app that use to predict Boston house price according to given Parameters in data set.

Home Page: https://boston-price-prediction.onrender.com/

License: Apache License 2.0

Jupyter Notebook 99.43% Python 0.05% HTML 0.24% CSS 0.27% JavaScript 0.01% Dockerfile 0.01%
data-science docker-image linear-regression machine-learning

boston-price-prediction's Introduction

Boston Price Prediction Using machine learning algorithm

This is machine learning web app that use to predict Boston house price accroding to given paramenter in data set.

Click the following link for view the deployed project:

Webview screenshots

page_1 page_2

ML Project lifeCycle Stp by Step

  • Data Collection
  • Data Analysis
  • Data Visualization
  • Feature Engineering
  • Feature Selection
  • Model Building
  • Model Evalution
  • Hyper Parameter Tunning
  • Creating Pickle file
  • Web App using Flask
  • Deployment

Data set

    from sklearn.datasets import load_boston

Data Set Characteristics:

  • Number of Instances: 506
  • Number of Attributes: 13 numeric/categorical predictive.

Data Attribute Information

  • CRIM: per capita crime rate by town
  • ZN: proportion of residential land zoned for lots over 25,000 sq.ft.
  • INDUS: proportion of non-retail business acres per town
  • CHAS: Charles River dummy variable (= 1 if tract bounds river; 0 otherwise)
  • NOX: nitric oxides concentration (parts per 10 million)
  • RM: average number of rooms per dwelling
  • AGE: proportion of owner-occupied units built prior to 1940
  • DIS: weighted distances to five Boston employment centres
  • RAD: index of accessibility to radial highways
  • TAX: full-value property-tax rate per $10,000
  • PTRATIO: pupil-teacher ratio by town
  • B: 1000(Bk - 0.63)^2 where Bk is the proportion of black people by town
  • LSTAT: % lower status of the population

Use Technologies

python packages: Pandas, Numpy, Scikit-learn, matplotlib ,seaborn

ML Algorithms: LinearRegression

Framework: Flask

frontend: Html, CSS

Run Locally

Clone the project

  git clone https://github.com/KaushalSalvatore/Boston-Price-Prediction.git

Install dependencies

  pip install -r requirements. txt

Start the local server

  Python index.py or index.py

Deploy on a Github

To deploy this project on github use this following command in the project folder.

Initializing a new repository

  git init

A gitignore file specifies intentionally untracked files that Git should ignore.

  touch .gitignore

Add all the files

  git add .

Check file status

  git status

Commit all the file on git

  git commit -m "your message"

Push all the code on github

  git push <your_branch_name>

Push code

  git push -u origin <your_branch_name>

Push code forcefully

  git push origin <your_branch_name> --force

Create Docker Image

  • Dockerfile: first create a docker file that is a text document that contains all the commands a user could call on the command line to assemble an image.
  • FROM python:3.8.17 (to create a blank base image)
  • COPY . /app (allows us to copy a file or folder from the host system into the docker image)
  • WORKDIR /app (define the working directory of a Docker container at any given time)
  • RUN pip install -r requirements.txt (execute any commands in a new layer on top of the current image and commit the results)
  • EXPOSE 8000 (tells Docker that a container listens for traffic on the specified port.)
  • CMD python index.py (specifies the instruction that is to be executed when a Docker container starts.)

command for create and Deploy docker image in a Docker hub

  Create a docker image 
  docker build -t kaushalpandey/boston-price-prediction .
  run docker image  
  docker run -p 8000:8000 boston-price-prediction	
  docker login
  docker build -t boston-price-prediction .
  push to docker hub
  docker push kaushalpandey/flask-helloworld:latest
  pull docker image
  docker pull kaushalpandey/boston-price-prediction:latest

Important Definition :

  • LinearRegression
  • coefficients
  • intercept
  • Assumptions
  • mean squared error
  • Mean absolute error
  • R square
  • Adjusted r square

Feedback

if you have any suggetion and feedback and need any kind of project related help reach me out at linkedin

Thank You

boston-price-prediction's People

Contributors

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