Question: Q 2 4 Part 2 : Classification ( 1 4 points ) 1 4 Points Instructions for Question 2 4 : Subsections 2 4 .
Q Part : Classification points
Points
Instructions for Question :
Subsections and : The answer that you input for the values in the weight vector should be real with one digit after the decimal point eg Note that there are no spaces between numbers. Use commas to separate numbers. You may include any relevant work for potential partial credit into the PDF you upload for subsection
Subsection : You will upload a single PDF file here. In this PDF please include your answer to subsection along with any supporting work for subsections and Your work may be used to assign partial credit in case your answers to and are wrong, but showing work is not required.
Suppose we have a dataset of three sentences:
"good movie",
"great film",
"bad movie",
Suppose our bagofwords vocabulary is five tokens: good movie, great, film, bad
Q
Points
Suppose we initialize the weight vector to and execute perceptron with alpha Give the new weight vector from executing one epoch of perceptron.
Q
Points
Now suppose we modify perceptron to use the following loss:
mathcalLwmathbfx y if correct
mathcalLwmathbfx yleftwtop fmathbfxright else
Write the correct update for this loss.
Please upload your answer for subsection along with any relevant supporting work for subsections and in a single pdf file here:
Please select files
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
