Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the negative log likelihood array of the input timestamps, given the kernel type? #475

Open
ANittoor opened this issue May 29, 2021 · 0 comments

Comments

@ANittoor
Copy link

Hi,

Thanks for the great library!

I have a requirement where I need to rank the performance of different kernels on a given dataset of timestamps, I do the ranking based on an algorithm that uses among other things, the likelihood array of each type of kernel fit. How do I access this likelihood array? I see that there is a score function in HawkesExpKernel for example, which gives me a single value of log-likelihood (is it negative log-likelihood?).

What I am looking for is -
Given a dataset of event timestamps [1, 9, 65 ... etc.] of some length n.
Given the probability distribution from the kernel type.
How do it get the array [NegativeLogLikelihood(events occurring at 1, 9),
NegativeLogLikelihood(events occurring at 1,9,65),
NegativeLogLikelihood(events occurring at 1,9,65, 72) .. etc.]
of length n-1 ?
I think score gives me the last value in this array for an exponential fit. How do I get the array?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant