Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

8. Parameter Tuning n Bookmark this page You finally have your algorithms up and running, and a way to measure performance! But, it's still unclear

image text in transcribed

image text in transcribed

8. Parameter Tuning n Bookmark this page You finally have your algorithms up and running, and a way to measure performance! But, it's still unclear what values the hyperparameters like T and should have. In this section, you'll tune these hyperparameters to maximize the performance of each model. One way to tune your hyperparameters for any given Machine Learning algorithm is to perform a grid search over all the possible combinations of values. If your hyperparameters can be any real number, you will need to limit the search to some finite set of possible values for each hyperparameter. For efficiency reasons, often you might want to tune one individual parameter, keeping all others constant, and then move onto the next one; Compared to a full grid search there are many fewer possible combinations to check, and this is what you'll be doing for the questions below. In main.py uncomment Problem 8 to run the staff-provided tuning algorithm from utils.py. For the purposes of this assignment, please try the following values for T:[1, 5, 10, 15, 25, 50] and the following values for [0.001, 0.01, 0.1, 1, 10]. For pegasos algorithm, first fix =0.01 to tune T, and then use the best T to tune , Performance After Tuning 7 points possible (graded) for the After tuning, please enter the best T value for each of the perceptron and average percepton algorithms, and both the best T and Pegasos algorithm. Note: Just enter the values printed in your main.py. Note that for the Pegasos algorithm, the result does not reflect the best combination of T and X For the perceptron algorithm: T= With validation accuracy = For the average perceptron algorithm: T= With validation accuracy= For the pegasos algorithm: T= = With validation accuracy = Submit You have used 0 of 20 attempts Save

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions