We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa6a8b1 commit 5d03035Copy full SHA for 5d03035
R/generic_fit.R
@@ -211,7 +211,8 @@ generic_keras_fit_impl <- function(
211
212
# Resolve metrics: user‐supplied or default
213
metrics_arg <- resolve_default(user_compile_args$metrics, default_metrics)
214
- # *** Wrap metrics_arg as a list of strings ***
+ # Keras' `compile()` can handle a single string or a list/vector of strings.
215
+ # This correctly passes along either the default string or a user-provided vector.
216
final_compile_args$metrics <- metrics_arg
217
218
# Add any other user-provided compile arguments (e.g., `weighted_metrics`)
0 commit comments