Suppose we have a prediction problem in marine shipping where the target ?corresponds to an angle measured in radians. A reasonable loss function in this case could be ?(?,?)∶=1−cos(?−?)
a.)Suppose the true angle is 3?/4. For which predicted values is the loss maximum and for which is it minimum? (Give also the corresponding loss.) Suppose we make predictions with a linear model ?=???+?
b.)Derive gradients of the loss with respect to both ?and ?.
c.)Describe a gradient descent algorithm to train the model on a data set (?(?),?(?)), ?=1, 2, ..., N
Get Answers For Free
Most questions answered within 1 hours.