Giter Club home page Giter Club logo

spatiotemporal_cox_hawkes's Introduction

Spatiotemporal_Cox_Hawkes

This code is used to run all the experiments in the paper "Cox-Hawkes: doubly stochastic spatiotemporal Poisson processes" accepted at the Transactions of Machine Learning Research. For the simulation experiment the code allows you to simulate data from the LGCP-Hawkes model and perform inference. For the misspecification experiment the code allows you to simulate data from the models LGCP, LGCP-Hawkes and Hawkes and perform inference under all three. Then, future data are predicted using the estimated model and then compared with the ones under the 'true' model. For the true dataset on gunshots, the first experiment is on inference under the LGCP-Hawkes model. The second is a comparison of the three models in prediction.

For code requirements see

requirements.txt

Simulate Data

  • Run the script simulate_spatiotemporal_cox_hawkes with your choice of model

Perform inference

  • Run the run_inference.sh pecifying the model you are interested in

Simulate future (true) events

  • Run the run_simualate_future_events.sh specifying the model you are interested in

Prediction analysis to compute errors

  • run_output_analysis.sh

Report error using RMSE

  • Run read_error.py

True dataset(gunshots)

  • Perform inference under the model LGCP-Hawkes

Reference for this code is [1]. The trained decoders and encoder/decoder functions are provided by Dr Elisaveta Semenova following the proposals in [2].

[1] X. Miscouridou, G. Mohler, S. Bhatt, S. Flaxman, S. Mishra, Cox-Hawkes: Doubly stochastic spatiotemporal poisson point process, Transaction of Machine Learning Research, 2023

[2] Elizaveta Semenova, Yidan Xu, Adam Howes, Theo Rashid, Samir Bhatt, B. Swapnil Mishra, and Seth R. Flaxman. Priorvae: encoding spatial priors with variational autoencoders for small-area estimation. Royal Society Publishing, pp. 73โ€“80, 2022

spatiotemporal_cox_hawkes's People

Contributors

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