Skip to content

Commit

Permalink
Pass additional parameters to keras::evaluate
Browse files Browse the repository at this point in the history
For example, verbosity can be reduced with `verbose = 0`. Refs #27
  • Loading branch information
fdavidcl authored Jan 12, 2019
1 parent 945e50a commit 14c4fd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/evaluate.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#' just like the ones defined in `\link[ruta]{evaluate}`.
#' @seealso `\link[ruta]{evaluate}`
#' @export
evaluation_metric <- function(evaluate_f) function(learner, data) {
evaluation_metric <- function(evaluate_f) function(learner, data, ...) {
k_model <- learner$models$autoencoder

keras::compile(
Expand All @@ -19,7 +19,7 @@ evaluation_metric <- function(evaluate_f) function(learner, data) {
loss = to_keras(learner$loss, learner),
metrics = evaluate_f
)
keras::evaluate(k_model, x = data, y = data)
keras::evaluate(k_model, x = data, y = data, ...)
}

#' Evaluation metrics
Expand Down

0 comments on commit 14c4fd0

Please sign in to comment.