evaluation_metric: Custom evaluation metrics

View source: R/evaluate.R

evaluation_metricR Documentation

Custom evaluation metrics

Description

Create a different evaluation metric from a valid Keras metric

Usage

evaluation_metric(evaluate_f)

Arguments

evaluate_f

Must be either a metric function defined by Keras (e.g. keras::metric_binary_crossentropy) or a valid function for Keras to create a performance metric (see \link[keras]{metric_binary_accuracy} for details)

Value

A function which can be called with parameters learner and data just like the ones defined in \link[ruta]{evaluate}.

See Also

\link[ruta]{evaluate}


ruta documentation built on Jan. 9, 2023, 1:20 a.m.