Skip to content

Commit

Permalink
Fix R wrapper for DL for weights/offset.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnocandel committed Jun 25, 2015
1 parent 9f12003 commit b9bf679
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions h2o-r/h2o-package/R/deeplearning.R
Expand Up @@ -187,11 +187,11 @@ h2o.deeplearning <- function(x, y, training_frame,
# Parameter list to send to model builder
parms <- list()
parms$training_frame <- training_frame
colargs <- .verify_dataxy(training_frame, x, y, autoencoder)
args <- .verify_dataxy(training_frame, x, y, autoencoder)
if( !missing(offset_column) ) args$x_ignore <- args$x_ignore[!( offset_column == args$x_ignore )]
if( !missing(weights_column) ) args$x_ignore <- args$x_ignore[!( weights_column == args$x_ignore )]
parms$response_column <- colargs$y
parms$ignored_columns <- colargs$x_ignore
parms$response_column <- args$y
parms$ignored_columns <- args$x_ignore
if(!missing(model_id))
parms$model_id <- model_id
if(!missing(overwrite_with_best_model))
Expand Down

0 comments on commit b9bf679

Please sign in to comment.