oracle.loss

Top level module for defining the Weighted Hierarchical Cross Entropy Loss function for hierarchical classification tasks.

Classes

WHXE_Loss(taxonomy, labels[, alpha, beta])

Implementation of the Weighted Hierarchical Cross Entropy Loss function.