Skip to content

hlukanov/bikes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bikes

Python 3.5.2 or newer is necessary

First steps:

  1. Download archive from GitHub
  2. Extract archive
  3. Download booking data from "https://data.deutschebahn.com/dataset/data-call-a-bike/resource/0fcce4dd-7fc6-43f8-a59c-983a7945f8ba" {4,01 GB}
  4. Extract archive "OPENDATA_BOOKING_CALL_A_BIKE.csv", rename to route_data.csv and save in extracted bikes archive under subfolder "data"
  5. Download train_test_data.csv from "https://drive.google.com/open?id=1MXj7RgAU_UGhLzo8brt3dzboRSAmmdA3" {52 MB} and save in extracted bikes archive under subfolder "data" (Note: this can also be created by running the preprocess.py again)
  6. Open a terminal and navigate to the extracted archive with "cd PATH/TO/FOLDER"
  7. Install required dependencies with "pip install -r requirements.txt"
  8. Run preprocess.py in an adequate run-time environment

For using the interface:

  1. Execute first steps
  2. Run interface.py
  3. Enlarge window
  4. Feed values to your hearts content

For testing/training the model:

  1. Execute first stepts
  2. In the terminal, type "python model.py" for testing accuracy or "python model.py train" to train the model (if you just want to test the model you can also just run the model.py script directly)
  3. See console for prediction accuracy of Support Vector Machine or wait until a new training model is created

(Note: This program runs with a pretrained model, which is used for the interface.py for demonstration purposes and to get the accuracy on the test set. It is not necessary to train the model again, but feel free to do so. It may take several days to train on any regular laptop.)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages