10000 [MRG] loss function plot y-label slightly confusing (#8283) · sergeyf/scikit-learn@bc15dc6 · GitHub
[go: up one dir, main page]

Skip to content

Commit bc15dc6

Browse files
Akshay0724sergeyf
authored andcommitted
[MRG] loss function plot y-label slightly confusing (scikit-learn#8283)
* Correct y label in plot * Remove Space
1 parent 5b9b101 commit bc15dc6

File tree< B806 /h2>

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/linear_model/plot_sgd_loss_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def modified_huber_loss(y_true, y_pred):
3838
plt.ylim((0, 8))
3939
plt.legend(loc="upper right")
4040
plt.xlabel(r"Decision function $f(x)$")
41-
plt.ylabel("$L(y, f(x))$")
41+
plt.ylabel("$L(y=1, f(x))$")
4242
plt.show()

0 commit comments

Comments
 (0)
0