logcosh = log((exp(x) + exp(-x))/2), where x is the error (y_pred - y_true)

metric_logcosh_error(..., name = "logcosh", dtype = NULL)

Arguments

...

Passed on to the underlying metric. Used for forwards and backwards compatibility.

name

(Optional) string name of the metric instance.

dtype

(Optional) data type of the metric result.

Value

A (subclassed) Metric instance that can be passed directly to compile(metrics = ), or used as a standalone object. See ?Metric for example usage.

See also