You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
If you define the loglikelihoods function for both, univariate and multivariate, with a fixed type like:
function log_likelihoods(hmm::AbstractHMM{Univariate}, observations)::Array{Float64,2}
hcat(map(d -> logpdf.(d, observations), hmm.D)...)
end
you should archieve a drastic speed up. I had a similar problem and it did the trick. I am no expert, but I think the 'log_likelihoods' functions within the 'mle' function is not type stable.
Also, I have to say that your module is really well structured and intuitively written!
The text was updated successfully, but these errors were encountered:
I used the log_likelihood function in another function and the compiler wasn't able to correctly guess the output - so I thought you might get some speed up when you are using your function in the MLE part of your module.
On a related note, I saw the graph where you guys benchmarked your package with hmmlearn - why this drastic time increase for the likelihood calculation? This should be already be a part in the forward pass.
Hi guys,
In your mle.jl file, on line 14 in the mle_step function, you have:
log_likelihoods = HMMBase.log_likelihoods(hmm, observations)
If you define the loglikelihoods function for both, univariate and multivariate, with a fixed type like:
you should archieve a drastic speed up. I had a similar problem and it did the trick. I am no expert, but I think the 'log_likelihoods' functions within the 'mle' function is not type stable.
Also, I have to say that your module is really well structured and intuitively written!
The text was updated successfully, but these errors were encountered: