Revision 0749e62757a30422c0d7d48dd4adcb792d7fc73d authored by pat-s on 11 February 2020, 07:48:07 UTC, committed by pat-s on 11 February 2020, 07:48:07 UTC
1 parent 09a7476
utils_plot.R
# checks for duplicated entries in learner.names and stops
# with error message containing the learner name that appeared more
# than once
checkDuplicatedLearnerNames = function(learner.names) {
dupl = duplicated(learner.names)
if (any(dupl)) {
dupl.learners = unique(learner.names[dupl])
stopf("Learner short names are not unique for: %s. \n Set 'pretty.names = FALSE' to resolve this.",
collapse(dupl.learners))
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...