Skip to content

Commit

Permalink
add a missing check for verbose field in R's SpeeDRF call
Browse files Browse the repository at this point in the history
  • Loading branch information
spennihana committed Jun 27, 2014
1 parent 755722e commit 022c836
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/h2o-package/R/Algorithms.R
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,8 @@ h2o.SpeeDRF <- function(x, y, data, classification=TRUE, nfolds=0, validation,
if(nfolds == 1) stop("nfolds cannot be 1")
if(!missing(validation) && class(validation) != "H2OParsedData")
stop("validation must be an H2O parsed dataset")

if(missing(verbose)) {verbose <- FALSE}

if(missing(validation) && nfolds == 0) {
# Default to using training data as validation
Expand Down Expand Up @@ -1349,4 +1351,4 @@ plot.H2OPerfModel <- function(x, type = "cutoffs", ...) {

.toupperFirst <- function(str) {
paste(toupper(substring(str, 1, 1)), substring(str, 2), sep = "")
}
}

0 comments on commit 022c836

Please sign in to comment.