Transformer-Hawkes-Process icon indicating copy to clipboard operation
Transformer-Hawkes-Process copied to clipboard

about the calculation of intensity for different event types

Open mfj9999 opened this issue 2 years ago • 3 comments

In the calculation of f_k in the paper, each event type should correspond to a different beta_k. However, in the code, the model only has one beta parameter. Shouldn't there be a separate learnable beta_k parameter for each event type? Can someone please give me some guidance? 1

2

mfj9999 avatar Sep 27 '23 09:09 mfj9999

hello,I think this beta is a parameter in softplus: https://pytorch.org/docs/stable/generated/torch.nn.Softplus.html.

waystogetthere avatar Oct 09 '23 03:10 waystogetthere

hello,I think this beta is a parameter in softplus: https://pytorch.org/docs/stable/generated/torch.nn.Softplus.html.

thank for your reply.I know that beta is a parameter in softplus .But my question is that Shouldn't there be a separate learnable beta_k parameter for each event type? It means if we have ten event types, we should have ten beta_k(0<k<=9).Can you please give me some guidance ?

mfj12315 avatar Jan 01 '24 08:01 mfj12315

I have the same question here, but I think they implemented the shared beta (k) instead, not beta_k. However, I have other question regarding this part. Where does the "current influence" from Eq.6 (paper page 7) be implemented in the code? From my understanding, when they calculate the type-specific intensity (\lambda_k) in the code (see pic I posted), only w^T_k*h(t_j) is calculated here, no?

Image

jiaxin-yuan avatar Oct 13 '25 11:10 jiaxin-yuan