Learn R Programming

ruta (version 1.2.0)

evaluation_metric: Custom evaluation metrics

Description

Create a different evaluation metric from a valid Keras metric

Usage

evaluation_metric(evaluate_f)

Value

A function which can be called with parameters learner and data

just like the ones defined in \link[ruta]{evaluate}.

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)

See Also

\link[ruta]{evaluate}