tick icon indicating copy to clipboard operation
tick copied to clipboard

constrainsts on HawkesExpKern

Open sumau opened this issue 4 years ago • 3 comments

Hey I'm trying to recreate the approach in this paper: https://scholar.harvard.edu/files/bgreen/files/jama-iternmed-17.pdf They use a multivariate hawkes model with an exponential kernel where the baselines are identical for all dimensions and the adjacency is identical for all neighbours. I was wondering if there was a way of tweaking the tick library, perhaps the LearnerOptim() class, to set constraints? Examples:

  1. Baseline is identical for all nodes
  2. Adjacency is zero for specific elements and identical for the other elements

Thanks!

sumau avatar Jun 29 '20 12:06 sumau

I would also like constrain some adjacency elements to be zero and the rest to be positive. Did you get anywhere with this @samau?

KristenMoore avatar Sep 03 '20 03:09 KristenMoore

@KristenMoore I wrote a new Learner in Python. It's not very flexible but you're welcome to use it: https://bitbucket.org/soumau/network_contagion/src/master/src/hawkesexpkernelidentical.py

I'm using it to infer contagion in a network of nodes. It assumes that: (1) Baseline is identical for all nodes (2) Adjacency is identical for neighbours and zero otherwise

sumau avatar Sep 04 '20 15:09 sumau

Thanks a lot for sharing this, @sumau. I'll try to adapt it to my case.

KristenMoore avatar Sep 05 '20 05:09 KristenMoore