Learn R Programming

ruta (version 1.0.2)

evaluation_metric: 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 metric_binary_accuracy for details)

Value

A function which can be called with parameters learner and data just like the ones defined in evaluate.

See Also

evaluate