Giter VIP home page Giter VIP logo

bikesharing's Introduction

Bike Sharing Model

Intro

The app.py contains code for the flask application that can be run on its own. The rest of the files refer to the ie_bike_model package.

this app is used to predict # users renting a bike in a specific

Running the app

  1. Make sure you have ie_bike_model package installed, if not install it as follows:
$ pip install lib/
  1. Make sure you have flask installed, otherwise run the following:
$ pip install flask
  1. To run the app in the command line use one of the following
$ python app.py --debug

incase you need to run in debugging mode

or simply run the following

$ flask run

Program execution

  1. To see modules versions information, please visit http://127.0.0.1:5000/

  2. Train first your model by running http://127.0.0.1:5000/train_and_persist

  3. To train the model using POST method, please run http://127.0.0.1:5000/train then click on submit to see the training results

  4. To see both train and predict at the same index level please visit http://127.0.0.1:5000/model then click on submit to see the training results

  5. Then predict by openeing http://127.0.0.1:5000/predict?date=2011-06-30T10:00:00&weathersit=1&temperature_C=20&feeling_temperature_C=18&humidity=80&windspeed=5 with your browser.

  6. Incase you decided to run the predict function without any parameters or some of them, the program will take care of that and will pass default values been initialized inside the predict function, for that you can try running the following

http://127.0.0.1:5000/predict

bikesharing's People

Contributors

amermo avatar

Watchers

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