mirror of https://github.com/tracel-ai/burn.git
Update huber.rs (#2232)
This commit is contained in:
parent
e8828afb29
commit
66ee3bb3bc
|
@ -37,7 +37,7 @@ impl HuberLossConfig {
|
||||||
/// The loss for each element of the residuals `r = targets - predictions` is given by
|
/// The loss for each element of the residuals `r = targets - predictions` is given by
|
||||||
///
|
///
|
||||||
/// ```text
|
/// ```text
|
||||||
/// L(r) = 0.5 * x^2 if |r| <= d
|
/// L(r) = 0.5 * r^2 if |r| <= d
|
||||||
/// L(r) = 0.5 * d^2 + d * (|r| - d) if |r| > d
|
/// L(r) = 0.5 * d^2 + d * (|r| - d) if |r| > d
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue