Skip to content

akshay-paliwal/House-Price-Prediction-with-Deployment

Repository files navigation

Project Title

House Price Prediction with Deployment

Introduction

This is one of my Machine Learning projects from Machine Learning and Deep Learning with Deployment course, from iNeuron.ai. In this project,the code was written to predict the price of a house based on the parameters given by the user, using a pre-trained Machine Learning(Multiple Linear Regression) model. The code needs to take the parameters from the user through an HTML form, use the obtained data to predict the house price, and display the predicted price to the user using another HTML page.

Multiple Regression - It is an extension of simple linear regression. It is used when we want to predict the value of a variable based on the value of two or more other variables.

Install

This project requires Python3. Also, some of the python libraries like Flask, and pickle(pre-installed with python). All the libraries can be installed using the following commands...

pip install flask

The project also requires Heroku CLI for deploying the app on the cloud which can be installed from here. The download can be confirmed by running the following command in terminal/ cmd

heroku

Also, the project requires some basic HTML knowledge to build the web pages for taking input from the user and displaying the result to the user.

Application Architecture

Blank Diagram

Code

  • Step-1 Start the flask app which will run the "base.html" on the cloud and get the parameters given by the user.
  • Step-2 Load the pre-trained model, stored in finalised_model.pickle.
  • Step-3 Prediction is made using the model loaded in Step-2
  • Step-4 Show the to the user through "prediction.html"

Deployment

To deploy the app on the cloud, the following steps are followed-

  • Step-1 Create an account on Heroku, which can be done from here
  • Step-2 Open the Terminal(Linux/ Mac) or Cmd(Windows) and navigate to the folder that contaions all the file.
  • Step-3 Run sudo apt install git to install git in the system.
  • Step-4 Run heroku login command. On execution, it will open the login page on the default web browser.
  • Step-5 After, logging in run the following commands and wait for some time. On successful execution, it will provide the URL for the app.
heroku create <app_name>
git init
git add .
git commit -m "Final commit"
git push heroku master

The link for runnig app is - https://house-price-prediction20.herokuapp.com/

prediction
App Preview

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors