Giter VIP home page Giter VIP logo

house-price-prediction's Introduction

0. Introduction

This project focuses on building a web application to predict house prices for house buyers and house sellers.

The value of a house is more than just location and square footage. Houses have several features that make up it's value.We are going to take advantage of all the features to make accurate predictions about the price of any house.

We developed our application using a series of logical steps to ensure that users can easily use the application and make accurate predictions.

  1. Introduction
  2. Problem definition
  3. Solution approach
  4. Results and discussions
  5. Conclusions
  6. Refrences

1. Problem definition

We used a simple case study to understand the problem. There are two clients at the same time without a conflict of intreset.

The house buyer, a client that wants to buy their dream home. They have some locations in mind. Now, the client wants to know if the house price matches the value. With the application, they can understand which features are influence the final price. If the final price matches the value predicted by the application the can ensure they are getting a fair price.

The house seller, a client that buys houses, fixes them and then sells houses to make profit. This client wants to take advantage of features that influece the price of a house the most. They typically want to buy a house at a low price and invest in features that will give the highest return.

2. Solution approach

  1. Define requirements
  2. Gather data, analyze and build models
  3. Build web backend API to use model
  4. Design and develope frontend
  5. Intergrate both frontend and backend
  6. Test the entire application

Define requirements

The requriements were gathered from the problem and formally defined.

User function

  • Predict house price
  • Customize house parameters
  • Assign unique label every prediction
  • Save recent predictions

Operating enviroment

  • client/server system (Web)
  • client: Web browers
  • server: Python/Flask
  • database: sqlite
  • platform: Python/Javascript/HTML5/CSS3
  • Operating system: Windows, Mac, Linux

2. Gather data, analyze and build models

We found an online kaggle challange that contained the data we needed to solve the problem. Data was downloaded from here We broke everything into the following steps We started by loading data and packages we needed for the research.We then analyzed the data to understand the relationships between the price and other features. We cleaned the data and using some domain knowlegde replaced some missing values. The next step was feature tranformation to make the data compatible with our models. We then trained our model and started perfoming some predictions.

3. Build web backend API to use model

Using python and the flask web framework we built a web API the takes advantage of our model. The API comsumer can make a request containing JSON map of features and their values. The flask server recieves this request and sends a response containing the predicted price.

6. Design and develope frontend

The User interface of the application was built using HTML, CSS3 and javascript.

7. Intergrate both frontend and backend

Using the javascript, we send data from the forms on the webpage to the flask server and the server sends a reponse, which is a prediction of the price matching those features

8. Test the entire application

We run multiple tests fixed bugs in the code.

3. Results and discussions

Screenshot of the application

First screenshot Second screenshot Third screenshot Fourth screenshot

We were able to build a web application that can predict the price of a house given certain features. The application runs in the browser and talks to a flask server that is taking data and passing it to a machine learning model.

4. Conclusion

There are real world problems that can be solved with machine learning. Some of these solutions can take real world data and make very accurate predictions that can be useful to our daily lives. Users can leverage the power of machine learning without being data scientist when easy to use applications are built around some of these complicated models.

5. Refrences

Pedro Marcelino, Comprehensive data exploration with Python, Kaggle, February 2017. Accessed on: April 19, 2021. [Online] Available: https://www.kaggle.com/pmarcelino/comprehensive-data-exploration-with-python

J. Ade-Ojo, Predicting House Prices With Machine Learning, Towards Data Science, Janurary 8, 2021. Accessed on: April 19, 2021. [Online] Available: https://towardsdatascience.com/predicting-house-prices-with-machine-learning-62d5bcd0d68f

House Prices - Advanced Regression Techniques, Kaggle, Accessed on: April 19, 2021. [Online] Available: https://www.kaggle.com/c/house-prices-advanced-regression-techniques

House Prices EDA, Kaggle, Accessed on: April 19, 2021. [Online] Available: https://www.kaggle.com/dgawlik/house-prices-eda

house-price-prediction's People

Contributors

kofi-0xdeadbeef 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.