Coder Social home page Coder Social logo

efficient-nonparametric-bayesian-hawkes-processes's Introduction

Implementation of Efficient Non-parametric Bayesian Hawkes Processes in Python3.5. A tutorial is included. There is no implementation of Halpin's trick which will be uploaded.

Required Packages

  • numpy
  • scipy==1.2.0
  • matplotlib
  • autograd==1.1.13
  • tick==0.5.0.0
  • numpydoc==0.7.0

They can be installed through pip:

   $ pip3 install numpy scipy==1.2.0 matplotlib autograd==1.1.13 tick==0.5.0.0 numpydoc==0.7.0

Citation

If you find Efficient Nonparametric Bayesian Hawkes Processes useful in your research, please consider citing:

@article{zhang2019efficient,
	title={Efficient Non-parametric Bayesian Hawkes Processes},
	author={Zhang, Rui and Walder, Christian and Rizoiu, Marian Andrei and Xie, Lexing},
	journal={the 28th International Joint Conference on Artificial Intelligence},
	year={2019}
}

Tutorial

See Gibbs_Hawkes.ipynb.

Online Demo

An online demo is on GoogleColab.

License

MIT License

efficient-nonparametric-bayesian-hawkes-processes's People

Contributors

ruizhang2016 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

efficient-nonparametric-bayesian-hawkes-processes's Issues

Just a small typo in your bibTeX

@Article{zhang2019efficient,
title={Efficient Non-parametric Bayesian Hawkes Processes},
author={Zhang, Rui and Walder, Christian and Rizoiu, Marian Andrei and Xie, Lexing},
journal={the 28th International Joint Conference on Artificial Intelligence},
year={2019}
}

I think this should be zhang2018efficient in your README page. Please double-check with Google Scholar.
I just came across this repo when checking on zhang2019efficient. Have a good day.

Error while running on different data

Hello,

I tried to use your method on simulated events from a univariate and linear Hawkes process with different kernels that the cosine function present in the example from Gibbs_Hawkes.ipynb.

No matter the kernel I choose to simulate, I get the same mistake when inferring saying that Qinv is not definite positive while running. Here is an example:

end_time = 10
baseline = np.array([.2])
alpha = np.array([[0.8]])
kernel = 'expon'
random_state = 27
events = simu_hawkes_cluster(end_time, baseline, alpha, 
                             kernel, random_state=random_state)
hp_data_list = [events[0].reshape(1, -1)]
xplot = np.linspace(0., 1, 100).reshape((1, -1))
rm_f, rstd_f, rm_mu, rstd_mu = gh.infer(hp_data_list, xplot, num_ite=800, burn_in=500)

Note that the function simu_hawkes_cluster is a custom function to simulate Hawkes process. The error returned is the following:
Capture d’écran 2023-08-11 à 14 04 04

Thanks in advance!

Halpin's trick

Has this been implemented?

If not, then can I assume the infer() function is quadratic in complexity instead of linear?

Thank you,

-Richard

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.