User-defined metrics

A custom Python object can be set as a value for the training metric.

The following parameters can be set for the corresponding classes and are used when the model is trained.

Class

Parameters

--loss-function

Description

A custom python object can be set as the value of this parameter (see an example).