Skip to contents

Methods are ranked using the Overall score, calculated as the mean of NMI, HOM and COM.

Usage

rank_normalization_methods(metrics_df)

Arguments

metrics_df

Data frame from calculate_clustering_metrics().

Value

Data frame containing Rank, method and Overall.

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