Skip to content

Commit ec981b6

Browse files
Update R/compile_keras_grid.R
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 40c9733 commit ec981b6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

R/compile_keras_grid.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,12 @@ extract_valid_grid <- function(compiled_grid) {
176176
#' effect of printing to the console.
177177
#' @export
178178
inform_errors <- function(compiled_grid, n = 10) {
179-
if (!is.data.frame(compiled_grid) || !all(c("error") %in% names(compiled_grid))) {
180-
stop("`compiled_grid` must be a data frame produced by `compile_keras_grid()`.")
179+
if (
180+
!is.data.frame(compiled_grid) || !all(c("error") %in% names(compiled_grid))
181+
) {
182+
stop(
183+
"`compiled_grid` must be a data frame produced by `compile_keras_grid()`."
184+
)
181185
}
182186

183187
error_grid <- compiled_grid %>%

0 commit comments

Comments
 (0)