Question: Sometimes, a different choice of hyper - parameter can provide better results. In machine learning, we perform a line - search over a hyper -
Sometimes, a different choice of hyperparameter can provide better results. In machine learning, we perform a linesearch over a hyperparameter by selecting a range of values for one particular hyperparameter and retraining the model to see if better results are achievable. For this problem, pick five different values of your own for learning rate, and retrain the models using gradient descent from part a for epochs. Compare the training and testing error you achieve with these values by reporting the final values. You may wish to do additional plotting with seaborn and matplotlib to summarize your results.
s# PUT YOUR CODE FOR SIMPLE LINE SEARCH HERE
# YOU ONLY NEED TO TEST FIVE VALUES OF LEARNING RATE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
