Update huber.rs (#2232)

This commit is contained in:
王翼翔 2024-09-02 04:31:07 +08:00 committed by GitHub
parent e8828afb29
commit 66ee3bb3bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ impl HuberLossConfig {
/// The loss for each element of the residuals `r = targets - predictions` is given by
///
/// ```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
/// ```
///