GithubHelp home page GithubHelp logo

fagan2888 / destination_prediction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bguillouet/destination_prediction

0.0 0.0 0.0 257 KB

Python code to re-produce results and illustrations of destination prediction by trajectory distribution based model.

Python 100.00%

destination_prediction's Introduction

Destination Prediction of Trajectory

Python code to re-produce results and illustrations of Destination Prediction by Trajectory Distribution Based Model detailed in publications [1] :

Dataset

Two datasets are used in the publication :

  • Caltrain dataset is composed of 4127 trajectories from taxis which begin their trip at Caltrain station, San Francisco. It is a subset of the cabspotting data set [3].

  • Sao Bento dataset is composed of 19423 trajectories from taxis which begin their trip at Sao Bento station, Porto. It is a subset of train dataset of the Kaggle ECML/PKDD 15: Taxi Trajectory Prediction (I) competition [3].

Trajectory Clustering and Classification

The different scripts to generate the two subsets described before and to produce the clustering of these trajectories, can be found in the following repository : https://github.com/bguillouet/trajectory_classification.

All the steps described in the README.md of the trajectory_classification repository has to be executed before to run the script of this repository.

Trajectory Prediction

  1. utils/config.py: Set the variable DATA_CLUSTERING_DIR to the path of the data directory of the trajectory_classification repository.
  2. generation_destination_prediction.py: Run the final destination prediction method described in [1]. Save the necessary data in order to produce the figure.
  3. figure.py: Produce the following png file :

Compare methods

Caltrain classification

Sao Bento classification

  • [1] BESSE, Philippe C., GUILLOUET, Brendan, LOUBES, Jean-Michel, et al. Destination Prediction by Trajectory Distribution-Based Model. IEEE Transactions on Intelligent Transportation Systems, 2017.

destination_prediction's People

Contributors

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