Skip to content

Commit

Permalink
Merge branch 'master' of github.com:fdavidcl/ruta
Browse files Browse the repository at this point in the history
  • Loading branch information
fdavidcl committed Feb 18, 2019
2 parents cceb17c + 14c4fd0 commit c4bb69b
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 c4bb69b

Please sign in to comment.