Giter Site home page Giter Site logo

data-science's Introduction

AirBnB Optimal Price Team 1

An API to predict daily AirBnB rates in Tokyo from property features.

Getting Started

This section is dedicated to software developers that want to contribute to this API. You must have pipenv installed on your local machine to continue.

Pipenv: Python Development Workflow for Humans

Environment Variables

If you have been provided rights, simply clone this repo. If not, you may fork and clone the repo:

git clone <url>

Once cloned, create a .env file in the main directory and add the following variables:

FLASK_APP=airbnb:APP 
FLASK_ENV=development

Then you can use the following commands to create a local pipenv environment and install all required dependencies:

pipenv shell
pipenv install

Start the API

Finally, you can run the following command to start the API:

flask run

Endpoints

POST /predict

Accepts the following JSON object parameters:

{
    beds: int
    baths: int
    season: int
    has_wifi: int
    allows_pets: int
    predicted_price: int 
}

Currently returns the same object. Working on predictive functionality.

data-science's People

Contributors

kmk028 avatar serinamarie avatar guillearria avatar ravenha avatar dpgofast avatar

Watchers

James Cloos 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.