Question: C 3 _ 1 part 2 : Try implementing a different loss function for synthetic regression data, such as the absolute value loss ( y

C3_1part2:
Try implementing a different loss function for synthetic regression data, such as the
absolute value loss (y_hat - d21.reshape(y,y_hat.shape )).abs().sum().
Check what happens for regular data.
Check whether there is a difference in behavior if you actively perturb |
some entries, such as y5=10000, of y.
Can you think of a cheap solution for combining the best aspects of
squared loss and absolute value loss? Hint: how can you avoid really
large gradient values?
please use python
C 3 _ 1 part 2 : Try implementing a different

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!