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 , The most explanatory unigrams 10 points possible (graded) According to the largest weights (i.e. individual i values in your vector), you can find out which unigrams were the most impactful ones in predicting positive labels. Uncomment the relevant part in main.py to call utils.most_explanatory_word. Report the top ten most explanatory word features for positive classification below: Top 1: Top 2: Top 3: Top 4: Top 5: in 6 Top 6: Top 7: Top 8: Top 9: Top 10: Also experiment with finding unigrams that were the most impactful in predicting negative labels. 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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions