Skip to content
Permalink
Browse files

typo in error message of auc_roc

  • Loading branch information...
jaak-s committed Oct 13, 2015
1 parent c7fded3 commit 53abe49fa5b11b12a9b6539c326d5c768b3139a3
Showing with 1 addition and 1 deletion.
  1. +1 −1 wrappers/R/R/crossvalidation.R
@@ -393,7 +393,7 @@ accuracy <- function(ytrue, yhat) {
auc_roc <- function(ytrue, yscore, decreasing=TRUE, top=1.0) {
if (length(ytrue) != length(yscore)) {
stop(sprintf("length of ytrue(%d) should be the same as length of ycore(%d).",
length(true), length(yscore) ))
length(ytrue), length(yscore) ))
}
tryCatch( {
pred <- ROCR::prediction(yscore, ytrue)

0 comments on commit 53abe49

Please sign in to comment.
You can’t perform that action at this time.