Proof of the hinge loss being 1-Lipschitz
$begingroup$
Page 7 of https://web.stanford.edu/class/cs229t/scribe_notes/10_10_final.pdf
I've tried finding a proof online, but haven't been able to find it. In the notes above which are provided as part of Stanford's Statistical Learning Theory, the hinge loss is defined as:
$$
l(z,h) = max(0,1-y_ih(x_i) )
$$
where $z = (x,y)$, and $h$ is some hypothesis.
Is it possible to provide a proof that this is $1$-Lipschitz? Furthermore, in general, is there a particular method to show this for functions that may not have a gradient defined at every point?
I hope someone can correct my (wrong) intuition: If a function $f(x)$ is $K$-Lipschitz, then the magnitude of its gradient is bounded by $K$. But in this case, why is the gradient of the hinge loss necessarily bounded? Can't we choose two points $x_1$ and $x_2$ which are arbitrarily close, but correspond to different labels such that $l(z_1,h) = 0$ but $l(z_2,h) = 1$?
real-analysis machine-learning
$endgroup$
add a comment |
$begingroup$
Page 7 of https://web.stanford.edu/class/cs229t/scribe_notes/10_10_final.pdf
I've tried finding a proof online, but haven't been able to find it. In the notes above which are provided as part of Stanford's Statistical Learning Theory, the hinge loss is defined as:
$$
l(z,h) = max(0,1-y_ih(x_i) )
$$
where $z = (x,y)$, and $h$ is some hypothesis.
Is it possible to provide a proof that this is $1$-Lipschitz? Furthermore, in general, is there a particular method to show this for functions that may not have a gradient defined at every point?
I hope someone can correct my (wrong) intuition: If a function $f(x)$ is $K$-Lipschitz, then the magnitude of its gradient is bounded by $K$. But in this case, why is the gradient of the hinge loss necessarily bounded? Can't we choose two points $x_1$ and $x_2$ which are arbitrarily close, but correspond to different labels such that $l(z_1,h) = 0$ but $l(z_2,h) = 1$?
real-analysis machine-learning
$endgroup$
$begingroup$
What metric are you using on the space containing the $(z,h)$?
$endgroup$
– copper.hat
Dec 3 '18 at 17:46
$begingroup$
I'm sorry, but no metric was specified; should I just assume the Euclidean metric in this case?
$endgroup$
– Sean Lee
Dec 3 '18 at 17:50
1
$begingroup$
I don't know what you mean by Euclidean metric for the function $h$. I don't have time to read through the pdf and figure it out. By Lipschitz you need to show that $|l(x_1,h_1) -l(z_2,h_2)| le L d((z_1,h_1),(z_2,h_2))$, where $d$ is some metric.
$endgroup$
– copper.hat
Dec 3 '18 at 17:58
$begingroup$
Ah okay sure thank you I'll try to work from that angle :)
$endgroup$
– Sean Lee
Dec 3 '18 at 17:59
add a comment |
$begingroup$
Page 7 of https://web.stanford.edu/class/cs229t/scribe_notes/10_10_final.pdf
I've tried finding a proof online, but haven't been able to find it. In the notes above which are provided as part of Stanford's Statistical Learning Theory, the hinge loss is defined as:
$$
l(z,h) = max(0,1-y_ih(x_i) )
$$
where $z = (x,y)$, and $h$ is some hypothesis.
Is it possible to provide a proof that this is $1$-Lipschitz? Furthermore, in general, is there a particular method to show this for functions that may not have a gradient defined at every point?
I hope someone can correct my (wrong) intuition: If a function $f(x)$ is $K$-Lipschitz, then the magnitude of its gradient is bounded by $K$. But in this case, why is the gradient of the hinge loss necessarily bounded? Can't we choose two points $x_1$ and $x_2$ which are arbitrarily close, but correspond to different labels such that $l(z_1,h) = 0$ but $l(z_2,h) = 1$?
real-analysis machine-learning
$endgroup$
Page 7 of https://web.stanford.edu/class/cs229t/scribe_notes/10_10_final.pdf
I've tried finding a proof online, but haven't been able to find it. In the notes above which are provided as part of Stanford's Statistical Learning Theory, the hinge loss is defined as:
$$
l(z,h) = max(0,1-y_ih(x_i) )
$$
where $z = (x,y)$, and $h$ is some hypothesis.
Is it possible to provide a proof that this is $1$-Lipschitz? Furthermore, in general, is there a particular method to show this for functions that may not have a gradient defined at every point?
I hope someone can correct my (wrong) intuition: If a function $f(x)$ is $K$-Lipschitz, then the magnitude of its gradient is bounded by $K$. But in this case, why is the gradient of the hinge loss necessarily bounded? Can't we choose two points $x_1$ and $x_2$ which are arbitrarily close, but correspond to different labels such that $l(z_1,h) = 0$ but $l(z_2,h) = 1$?
real-analysis machine-learning
real-analysis machine-learning
asked Dec 3 '18 at 17:41
Sean LeeSean Lee
1749
1749
$begingroup$
What metric are you using on the space containing the $(z,h)$?
$endgroup$
– copper.hat
Dec 3 '18 at 17:46
$begingroup$
I'm sorry, but no metric was specified; should I just assume the Euclidean metric in this case?
$endgroup$
– Sean Lee
Dec 3 '18 at 17:50
1
$begingroup$
I don't know what you mean by Euclidean metric for the function $h$. I don't have time to read through the pdf and figure it out. By Lipschitz you need to show that $|l(x_1,h_1) -l(z_2,h_2)| le L d((z_1,h_1),(z_2,h_2))$, where $d$ is some metric.
$endgroup$
– copper.hat
Dec 3 '18 at 17:58
$begingroup$
Ah okay sure thank you I'll try to work from that angle :)
$endgroup$
– Sean Lee
Dec 3 '18 at 17:59
add a comment |
$begingroup$
What metric are you using on the space containing the $(z,h)$?
$endgroup$
– copper.hat
Dec 3 '18 at 17:46
$begingroup$
I'm sorry, but no metric was specified; should I just assume the Euclidean metric in this case?
$endgroup$
– Sean Lee
Dec 3 '18 at 17:50
1
$begingroup$
I don't know what you mean by Euclidean metric for the function $h$. I don't have time to read through the pdf and figure it out. By Lipschitz you need to show that $|l(x_1,h_1) -l(z_2,h_2)| le L d((z_1,h_1),(z_2,h_2))$, where $d$ is some metric.
$endgroup$
– copper.hat
Dec 3 '18 at 17:58
$begingroup$
Ah okay sure thank you I'll try to work from that angle :)
$endgroup$
– Sean Lee
Dec 3 '18 at 17:59
$begingroup$
What metric are you using on the space containing the $(z,h)$?
$endgroup$
– copper.hat
Dec 3 '18 at 17:46
$begingroup$
What metric are you using on the space containing the $(z,h)$?
$endgroup$
– copper.hat
Dec 3 '18 at 17:46
$begingroup$
I'm sorry, but no metric was specified; should I just assume the Euclidean metric in this case?
$endgroup$
– Sean Lee
Dec 3 '18 at 17:50
$begingroup$
I'm sorry, but no metric was specified; should I just assume the Euclidean metric in this case?
$endgroup$
– Sean Lee
Dec 3 '18 at 17:50
1
1
$begingroup$
I don't know what you mean by Euclidean metric for the function $h$. I don't have time to read through the pdf and figure it out. By Lipschitz you need to show that $|l(x_1,h_1) -l(z_2,h_2)| le L d((z_1,h_1),(z_2,h_2))$, where $d$ is some metric.
$endgroup$
– copper.hat
Dec 3 '18 at 17:58
$begingroup$
I don't know what you mean by Euclidean metric for the function $h$. I don't have time to read through the pdf and figure it out. By Lipschitz you need to show that $|l(x_1,h_1) -l(z_2,h_2)| le L d((z_1,h_1),(z_2,h_2))$, where $d$ is some metric.
$endgroup$
– copper.hat
Dec 3 '18 at 17:58
$begingroup$
Ah okay sure thank you I'll try to work from that angle :)
$endgroup$
– Sean Lee
Dec 3 '18 at 17:59
$begingroup$
Ah okay sure thank you I'll try to work from that angle :)
$endgroup$
– Sean Lee
Dec 3 '18 at 17:59
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3024406%2fproof-of-the-hinge-loss-being-1-lipschitz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3024406%2fproof-of-the-hinge-loss-being-1-lipschitz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
What metric are you using on the space containing the $(z,h)$?
$endgroup$
– copper.hat
Dec 3 '18 at 17:46
$begingroup$
I'm sorry, but no metric was specified; should I just assume the Euclidean metric in this case?
$endgroup$
– Sean Lee
Dec 3 '18 at 17:50
1
$begingroup$
I don't know what you mean by Euclidean metric for the function $h$. I don't have time to read through the pdf and figure it out. By Lipschitz you need to show that $|l(x_1,h_1) -l(z_2,h_2)| le L d((z_1,h_1),(z_2,h_2))$, where $d$ is some metric.
$endgroup$
– copper.hat
Dec 3 '18 at 17:58
$begingroup$
Ah okay sure thank you I'll try to work from that angle :)
$endgroup$
– Sean Lee
Dec 3 '18 at 17:59