Skip to content

Commit 94d70bc

Browse files
Update R/generic_fit_helpers.R
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f5ebf56 commit 94d70bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/generic_fit_helpers.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ collect_compile_args <- function(
103103
# Single output
104104
metrics_arg <- user_compile_args$metrics %||% default_metrics
105105
if (is.character(metrics_arg)) {
106-
final_compile_args$metrics <- lapply(metrics_arg, get_keras_object, "metric")
106+
final_compile_args$metrics <- lapply(
107+
metrics_arg,
108+
get_keras_object,
109+
"metric"
110+
)
107111
} else {
108112
final_compile_args$metrics <- metrics_arg
109113
}

0 commit comments

Comments
 (0)