Closed marc-heinl closed 2 years ago
Hm, it seems that's actually not possible at the moment... I never thought about that case. I think the best option would be to wrap the patterns in a list like this:
pdc_configs(
type = "distance",
dtw_basic = list(
norm = c("L1", "L2"), # example
step.pattern = list(dtw::symmetric1, dtw::symmetric2)
)
)
But the current version of compare_clusterings
will not be able to unlist that correctly, so I'll have to change the code a bit.
I'll push an update to CRAN shortly, but if you can install from github, give it a try with list
as I mentioned.
I tried the new implemented functionallity with the list
wrapper for step.pattern
specification with dtw::symmetric1
and everything works just fine.
Thank you again for the fast adjustment!
Hello,
I would like to use the compare_clusterings() function with a pre-defined clustering setting. Therefore I use compare_cluster_configs respectively pdc_configs with dtw_basic as distance measure. To change step.pattern to dtw::symmetric1 for cluster-comparison I already tried to set the parameter within the dtw_basic list config e.g.
dtw_basic = list(step.pattern = dtw::symmetric1)
I also trieddtw_basic = list(step.pattern = "dtw::symmetric1")
anddtw_basic = list(step.pattern = 1)
None of this seems to work and I get different errors for each config.If nothing is set and default step.pattern is used everything works fine.
I would appreciate any kind of help.
Here a clipping of my code: