Coder Social home page Coder Social logo

ezzaldeeen / house-price-prediction-api Goto Github PK

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

Final Project for Machine Learning course, House Price Prediction

Home Page: https://house-price-prediction-ml-api.herokuapp.com/

Python 0.74% Jupyter Notebook 99.16% Dockerfile 0.04% Makefile 0.06%

house-price-prediction-api's Introduction

House Price Prediction API

Introduction:

A common problem in the real-world which is how we could estimate the price of houses, and this is very important issue for both:

  • Seller: The owner of the house.
  • Buyer: The one who wants to buy the house.

The data that we want to build our model using it ( Training the model ), It stored on Kaggle here is the link of the data and an overview on that dataset.

House Prices Advanced Regression Techniques:

https://www.kaggle.com/c/house-prices-advanced-regression-techniques


Technical Requirements

  • virtualenv,
  • Docker,
  • The required Python librairies used can be installed from the included requirements.txt file:
virtualenv .venv
source .venv/bin/activate
make init

Running the application locally

Directly

cd ezzaldeen-mousa
python3 app/run.py

On Docker

cd ezzaldeen-mousa
docker build -t house-price-api .
docker run -p 5000:5000 house-price-api
# or you could just use
make docker-run

Testing the application

Once it is running, the API can be queried using HTTP POST requests. This can be done from the CLI using curl or through a GUI REST client like Postman.

URL: http://0.0.0.0:5000/api/v1/single_prediction

Here is a sample query:

{
    "MSZoning": "RL",
    "Street": "Pave",
    "LotShape": "IR1",
    "LandContour": "Lvl",
    "Utilities": "AllPub",
    "OverallQual": 7,
    "YearBuilt": 1959,
    "YearRemodAdd": 1997,
    "MasVnrArea": 0.0,
    "BsmtFinSF1": 1247,
    "TotalBsmtSF": 1501,
    "1stFlrSF": 1801,
    "GrLivArea": 1801,
    "FullBath": 2,
    "TotRmsAbvGrd": 6,
    "Fireplaces": 2,
    "GarageYrBlt": 1959.0,
    "GarageCars": 2,
    "GarageArea": 484
 }

The response should look like this:

{
    "predict_value": 298457,
    "success": true
}

house-price-prediction-api's People

Contributors

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