Code Monkey home page Code Monkey logo

e2dtc's Introduction

E2​DTC

This repository contains the code used in our paper: E2DTC: An End to End Deep Trajectory ClusteringFramework via Self-Training

Requirements

  • Ubuntu OS
  • Python >= 3.5 (Anaconda3 is recommended)
  • PyTorch 1.4+
  • A Nvidia GPU with cuda 10.2+

Please refer to the source code to install all required packages in Python.

Data

  • Our geolife trajectory clustering datasets are stored in data according to our Ground Truth Generation algorithm.
  • We provide cluster center data, raw trajectory data, as well as discretized token(cell size 300) for training.

Train

  1. Training with parameters
python e2dtc.py -vocab_size 1319 -knearestvocabs "data/geolife-vocab-dist-cell300.h5" -pretrain_epoch 20 -num_layers 3 -learning_rate 0.0001 -gamma 0.1 -beta 0.1 -update_interval 1 -n_cluster 12 -cuda 0
  1. The training produces two model checkpoint.pt and best_model.pt, checkpoint.pt contains the latest trained model and best_model.pt saves the model which has the best performance on the validation data.

Some code comes from t2vec.

e2dtc's People

Contributors

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