Skip to content

Commit

Permalink
Merge pull request #50 from henrifnk/master
Browse files Browse the repository at this point in the history
change as_precrec prediction
  • Loading branch information
mllg authored Sep 16, 2020
2 parents 8d1f98c + 951357d commit a5a5437
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/BenchmarkResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#'
#' head(fortify(object))
#' autoplot(object)
#' autoplot(object$clone()$filter(task_ids = "spam"), type = "roc")
#' autoplot(object$clone()$filter(task_ids = "pima"), type = "prc")
#' autoplot(object$clone(deep = TRUE)$filter(task_ids = "spam"), type = "roc")
#' autoplot(object$clone(deep = TRUE)$filter(task_ids = "pima"), type = "prc")
autoplot.BenchmarkResult = function(object, # nolint
type = "boxplot",
measure = NULL,
Expand Down
2 changes: 1 addition & 1 deletion R/as_precrec.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ as_precrec.BenchmarkResult = function(object) { # nolint
stopf("Unable to convert benchmark results with multiple resamplings.")
}

predictions = map(scores$prediction, "test")
predictions = scores$prediction
data = transpose_list(map(predictions, roc_data))
data$labels = split(data$labels, scores$iteration)
data$scores = split(data$scores, scores$iteration)
Expand Down
4 changes: 2 additions & 2 deletions man/autoplot.BenchmarkResult.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/autoplot.LearnerClassifRpart.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5a5437

Please sign in to comment.