Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started