Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EDA: add table or so that show on which instances all algos are equal #95

Open
berndbischl opened this issue Apr 21, 2014 · 1 comment

Comments

@berndbischl
Copy link
Owner

Specifically: Where all algos failed.

Think about how this is presented best.

@kerschke
Copy link
Collaborator

How about a barplot, where each bar represents the number of algorithms that could not be solved (0 to number of algos)?

plotMissings = function(astask, measure) {
  checkArg(astask, "ASTask")
  measure = checkMeasure(measure, astask$desc)
  data = convertAlgoPerfToWideFormat(astask$desc, astask$algo.runs, measure)
  data = dropNamed(data, c("instance_id", "repetition"))
  s = apply(data, 1, function(x) sum(is.na(x)))
  tab = 100 * table(s) / sum(table(s))
  ## assure that all posible categories are shown
  if (length(tab) < 1L + ncol(data)) {
    cns = names(tab)
    new.cns = setdiff(0:ncol(data), cns)
    tab = c(rep(0, length(new.cns)), tab)
    names(tab) = c(new.cns, cns)
    tab = tab[order(as.integer(names(tab)))]
  }
  par(mar = c(4.5, 4.1, 1, 0))
  barplot(tab, las = 2, ylim = c(0, max(tab)) * 1.15,
    xlab = "Number of Unsuccessful Algorithms",
    ylab = "Percentage of Instances", 
    col = "lightblue")
  x.pos = cumsum(0.2 + rep_len(1, length(tab))) - 0.5
  y.pos = tab + max(tab) * 0.08
  text(x.pos, y.pos, sprintf("%.1f", tab), srt = 90)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants