Skip to content

Commit

Permalink
typo in error message of auc_roc
Browse files Browse the repository at this point in the history
  • Loading branch information
jaak-s committed Oct 13, 2015
1 parent c7fded3 commit 53abe49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrappers/R/R/crossvalidation.R
Expand Up @@ -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)
Expand Down

0 comments on commit 53abe49

Please sign in to comment.