

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Winter 08 Warmuth
You are to implement logistic regression for predicting that email’s are spam. A link to the data is provided on the class web site. Implement the following form of cross validation: You start with a set of models typically produced by setting a parameter. Examples of how to choose an interesting set of models are given below. Do cross validation according to the following scheme:
for i=1 to 10 permute data split into 3/4 training and 1/4 testing set
Now do 5 fold cross validation to determine the best model parameters:
Evaluate the best model by computing the average logistic loss on the 1/4 test set
Report the average performance of the best model on the 10 runs as well as the standard deviation
Which model (parameters) to optimize:
For your model parameter you can optimize P , η 0 , or α.
or some other reasonable choice. Or train it until the total gradient is less than 10−^4.
Write a short report summarizing what you did including any interesting visualization.
More helpfull suggestions hints: