Skip to content

Commit a049fa2

Browse files
committed
removing unnecesary summary capture
1 parent fc15d7b commit a049fa2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

R/compile_keras_grid.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,14 @@ compile_keras_grid <- function(spec, grid, x, y) {
110110
{
111111
model <- do.call(build_fn, args)
112112
# Capture the model summary
113-
summary_char <- utils::capture.output(summary(
114-
model
115-
))
116113
list(
117114
compiled_model = list(model),
118-
model_summary = paste(summary_char, collapse = "\n"),
119115
error = NA_character_
120116
)
121117
},
122118
error = function(e) {
123119
list(
124120
compiled_model = list(NULL),
125-
model_summary = NA_character_,
126121
error = as.character(e$message)
127122
)
128123
}

0 commit comments

Comments
 (0)