Rank normalisation methods by overall clustering agreement
Source:R/clustering_runner.R
rank_normalization_methods.RdMethods are ranked using the Overall score, calculated as the mean of NMI, HOM and COM.
Examples
data(norm_example)
banksy_norm <- run_banksy_individual(
norm_list = norm_example,
seed = 123
)
#> Computing neighbors...
#> Spatial mode is kNN_median
#> Parameters: k_geom=15
#> Done
#> Done
#> Using seed=123
#> Using seed=123
#> Computing neighbors...
#> Spatial mode is kNN_median
#> Parameters: k_geom=15
#> Done
#> Done
#> Using seed=123
#> Using seed=123
metrics_df <- calculate_clustering_metrics(
norm_list = banksy_norm,
ground_truth_col = "layer_guess"
)
ranking_df <- rank_normalization_methods(
metrics_df = metrics_df
)
ranking_df
#> Rank method Overall
#> 1 1 None 0.4156942
#> 2 2 SpaNorm 0.4020037