yamle.losses.evidential_regression module
Adopted from: aamini/evidential-deep-learning
-
class yamle.losses.evidential_regression.NIG_NLL(*args, **kwargs)[source]
Bases: Module
Negative log-likelihood loss for Normal Inverse Gamma (NIG) distribution.
-
forward(y, gamma, v, alpha, beta)[source]
Compute the loss function.
- Return type:
Tensor
-
training:
bool
-
class yamle.losses.evidential_regression.NIG_Reg(*args, **kwargs)[source]
Bases: Module
Regularization loss for Normal Inverse Gamma (NIG) distribution.
-
forward(y, gamma, v, alpha, beta)[source]
Compute the loss function.
- Return type:
Tensor
-
training:
bool
-
class yamle.losses.evidential_regression.EvidentialRegressionLoss(*args, **kwargs)[source]
Bases: BaseLoss
Evidential regression loss for probabilistic regression.
-
tasks = ['regression', 'depth_estimation', 'reconstruction']