deephyper.nas.metrics#

This module provides different metric functions. A metric can be defined by a keyword (str) or a callable. If it is a keyword it has to be available in tensorflow.keras or in deephyper.netrics. The loss functions availble in deephyper.metrics are: * Sparse Perplexity: sparse_perplexity * R2: r2 * AUC ROC: auroc * AUC Precision-Recall: aucpr

Functions

acc

load_attr

Loadd attribute from module.

mae

mse

r2

rmse

selectMetric

Return the metric defined by name.

sparse_perplexity

tfp_mae

tfp_mse

tfp_r2

tfp_rmse

to_tfp

Convert a regular tensorflow-keras metric for tensorflow probability where the output is a distribution.

Classes

OrderedDict

Dictionary that remembers insertion order