scoringutils icon indicating copy to clipboard operation
scoringutils copied to clipboard

Error handling for correlations and plotting correlations

Open nikosbosse opened this issue 3 years ago • 0 comments

The function should give you an intuitive error message, when you try to pass the output form "summarise_scores" directly into "plot_correlations".

correlation should give a warning when it filters out columns because not all values are numeric or finite here:

  # remove all non metrics and non-numeric columns
  df <- scores[, .SD, .SDcols = sapply(
    scores,
    function(x) {
      (all(is.numeric(x))) && all(is.finite(x))
    }
  )]

nikosbosse avatar Aug 18 '22 12:08 nikosbosse