Coder Social home page Coder Social logo

ruban2205 / housing-prediction-microservice Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 22 KB

This repository houses a microservice designed for predicting housing prices based on machine learning models. It provides a REST API endpoint to interact with the prediction service, making it easy to integrate into various applications.

License: MIT License

CSS 2.21% Dockerfile 15.83% Python 81.96%
machine-learning python streamlit

housing-prediction-microservice's Introduction

Housing Prediction Microservice

Contributors Forks Stargazers Issues MIT License

This repository contains a microservice for predicting housing prices based on machine learning models.

Overview

This microservice provides a REST API endpoint to predict housing prices. It utilizes a machine learning model trained on historical housing data to make predictions.

Installation

  1. To run this microservice locally, follow these steps:
git clone https://github.com/Ruban2205/housing-prediction-microservice.git
cd housing-prediction-microservice
  1. Install dependencies:
pip install -r requirements.txt
  1. Start the microservice
python app.py

The microservice will start running locally at http://localhost:5000

API Usage

Endpoint

  • POST /predict

Request Body

The /predict endpoint expects a JSON object with the following format:

{
  "area": 1500,
  "rooms": 3,
  "age": 15
}
  • area (integer): The area of the house in square feet.
  • rooms (integer): The number of rooms in the house.
  • age (integer): The age of the house in years.

Response

The endpoint responds with a JSON object containing the predicted price:

{
  "predicted_price": 250000
}

Contributing

Thank you for considering contributing to the Housing Prediction Microservice! Please follow these guidelines:

  1. Reporting Bugs: Search existing issues before reporting bugs.
  2. Enhancements: Suggest new features or improvements via GitHub issues.
  3. Code Contributions: Fork the repo, create a branch, and submit a pull request.
  4. Pull Requests: Ensure tests are added for new code. Get a sign-off before merging.

Deployment

For deployment, ensure to set the necessary environment variables and configure the microservice to run in a production environment. This typically involves using a production-grade WSGI server like Gunicorn and setting up appropriate logging.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Star โญ this repository for Future use ๐Ÿ˜Š

housing-prediction-microservice's People

Contributors

mahimairaja avatar ruban2205 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mahimairaja

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.