Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong LaTeX equation in huber_loss_op.cc #5865

Closed
wangkuiyi opened this issue Nov 23, 2017 · 0 comments
Closed

Wrong LaTeX equation in huber_loss_op.cc #5865

wangkuiyi opened this issue Nov 23, 2017 · 0 comments
Assignees

Comments

@wangkuiyi
Copy link
Collaborator

wangkuiyi commented Nov 23, 2017

The LaTeX equation of the operator HuberLoss isn't encapsulated by a pair of double-dollar $$:

Huber loss is a loss function used in robust regression. We define X as the
input value and Y as the target value. Huber loss can evaluate the fitness of
X to Y. Different from MSE loss, Huber loss is more robust for outliers. The
shape of X and Y are [batch_size, 1]. The equation is:
L_{\delta}(y, f(x)) =
\begin{cases}
0.5 * (y - f(x))^2, \quad |y - f(x)| \leq \delta \\
\delta * (|y - f(x)| - 0.5 * \delta), \quad otherwise
\end{cases}
)DOC");

Please add them, while taking the following code as an example:

The original formula is:
$$
Output(i, x, y) = Input(i, x, y) / \left(
k + \alpha \sum\limits^{\min(C, c + n/2)}_{j = \max(0, c - n/2)}
(Input(j, x, y))^2
\right)^{\beta}
$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants