brainpy.losses module
brainpy.losses
module#
This module implements several loss functions.
|
This criterion combines |
|
Creates a criterion that measures the mean absolute error (MAE) between each element in the logits \(x\) and targets \(y\). |
|
Computes the L2 loss. |
|
Computes the L2 loss. |
|
Huber loss. |
|
Computes the mean absolute error between x and y. |
|
Computes the mean squared error between x and y. |
|
Computes the mean squared logarithmic error between y_true and y_pred. |