Skip to content

Commit

Permalink
Fix alt text huber loss image
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvanderburg committed Feb 18, 2024
1 parent 1ea9ab6 commit 8d9c044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/1-introduction.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ A more complicated and less used loss function for regression is the [Huber loss
Below you see the Huber loss (green, delta = 1) and Squared error loss (blue)
as a function of `y_true - y_pred`.

![](fig/01_huber_loss.png){alt='Line plot comparing squared error loss function with the Huber loss function where delta = 1, showing the cost of prediction error of both functions equal where y_true - y_pred is between -1 and 1, then rising linearly with the Huber loss function as y_true diverges further from y_pred, as opposed to expontentially for the squared error function.',' width='400px'}
![](fig/01_huber_loss.png){alt='Line plot comparing squared error loss function with the Huber loss function where delta = 1, showing the cost of prediction error of both functions equal where y_true - y_pred is between -1 and 1, then rising linearly with the Huber loss function as y_true diverges further from y_pred, as opposed to expontentially for the squared error function.' width='400px'}

Which loss function is more sensitive to outliers?

Expand Down

0 comments on commit 8d9c044

Please sign in to comment.