Closed mahendra-mariadassou closed 1 year ago
I realized while working on the fix that smoothing implicitly assumes that models in the family are adjacent (e.g. we have all models between 2 clusters and 10 clusters, not only the ones with 2, 5 and 10 clusters). I added a warning and easy fix but it might be useful to smooth with more spread out models. @jchiquet I'll work on a fix in a separate and let you decide whether it's worth including in the package.
Could you please an entry in NEWS.md?
thanks!
Done. And you can have a look at branch mixture_smoothing to see how we can deal with incomplete sequences (e.g. c(1, 3, 5)
).
k
in min(clusters):max(clusters)
. Wouldn't it be simpler to simply overwrite clusters
with min(clusters):max(clusters)
?This sounds good, and will match what the user has requested. Ok to merge in main/master for me. Do you keep all the model fitted in memory or just use them for the browsing during the slit/merge strategy ?
Thanks!
I'll merge it. I keep only the requested models in memory, the others are only used during browsing.
PLNmixture()
with backward (and potentially forward) smoothing fails when theclusters
argument is not a complete sequence starting at 1.Created on 2023-02-04 with reprex v2.0.2
The culprit are here and here as
k
refers both to the number of clusters and the position in the family of models.