deephyper.nas.metrics.selectMetric#

deephyper.nas.metrics.selectMetric(name: str)[source]#

Return the metric defined by name.

Parameters:

name (str) – a string referenced in DeepHyper, one referenced in keras or an attribute name to import.

Returns:

a string suppossing it is referenced in the keras framework or a callable taking (y_true, y_pred) as inputs and returning a tensor.

Return type:

str or callable