Skip to content

Commit 1fc7dfe

Browse files
committed
added an extra check on column names
1 parent e3e8aaf commit 1fc7dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/mlp.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ keras_mlp <-
375375
}
376376

377377
keras_numeric_post <- function(results, object) {
378-
if (ncol(results) > 1) {
378+
if (ncol(results) > 1 && !is.null(object$fit$y_names)) {
379379
colnames(results) <- object$fit$y_names
380380
}
381381
maybe_multivariate(results, object)

0 commit comments

Comments
 (0)