ocbe-uio / BayesMallows

R-package for Bayesian preference learning with the Mallows rank model.
https://ocbe-uio.github.io/BayesMallows/
GNU General Public License v3.0
21 stars 9 forks source link

Can heat plot work for multiple clusters? #377

Open osorensen opened 6 months ago

osorensen commented 6 months ago

As pointed out by Marta:

library(BayesMallows)
mod <- compute_mallows(
  data = setup_rank_data(rankings = cluster_data),
  model_options = set_model_options(n_clusters = 3),
  compute_options = set_compute_options(nmc = 10000, burnin = 1000)
)

heat_plot(mod)
#> Error in heat_plot(mod): heat_plot only works for a single cluster

Created on 2024-02-15 with reprex v2.1.0