Coder Social home page Coder Social logo

abeusher / petry-2020-marc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bigdata-ufsc/petry-2020-marc

0.0 1.0 0.0 20.9 MB

Source code for the paper "MARC: a robust method for multiple-aspect trajectory classification via space, time, and semantic embeddings"

License: MIT License

Python 97.01% TeX 2.99%

petry-2020-marc's Introduction

MARC: a robust method for multiple-aspect trajectory classification via space, time, and semantic embeddings

Source code of the paper MARC: a robust method for multiple-aspect trajectory classification via space, time, and semantic embeddings, accepted for publication in International Journal of Geographical Information Science (IJGIS).

[ publication ] [ preprint ] [ bibtex ]

Setup

  1. In order to run the code you first need to install all the Python dependencies listed in requirements.txt. You can do that with pip (works only with Python 3, tested with Python 3.6.7):

    pip install -r requirements.txt
    
  2. Or if you use the Miniconda environment manager you can just run the following to create an environment with Python 3.6.7 and all required dependencies (replace ENV_NAME with whatever name you'd like):

    conda env create -f environment.yml --name ENV_NAME
    

    And then activate it with:

    conda activate ENV_NAME
    

Usage

  1. You can run the classifier with the following command:
    python multi_feature_classifier.py TRAIN_FILE TEST_FILE RESULTS_FILE DATASET_NAME EMBEDDING_SIZE MERGE_TYPE RNN_CELL
    
    Where:
    • TRAIN_FILE: The input CSV training file.
    • TEST_FILE: The input CSV test file.
    • RESULTS_FILE: The destination CSV results file.
    • DATASET_NAME: Label with the dataset name. This will be written in the results file as the dataset name.
    • EMBEDDING_SIZE: The embedding size of the attributes.
    • MERGE_TYPE: How attributes should be aggregated. It can be one of {add, average, concatenate}.
    • RNN_CELL: The recurrent cell used in the network. It can be one of {gru, lstm}.
  2. For instance:
    python multi_feature_classifier.py data/foursquare_nyc/train.csv data/foursquare_nyc/test.csv results.csv FoursquareNYC 100 concatenate lstm
    

petry-2020-marc's People

Contributors

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