ICA #19 Solution

Hi Dr. Ballings,

Can you explain why the levels for y in the solution for the assignment from April 5th change between c(-1,1) and c(0,1)?


Answers and follow-up questions

Answer or follow-up question 1

Dear student,

The boosting algorithm requires the levels to be {-1,1} per the book. The AUC package requires the levels to be {0,1} per the documentation.
Have a look at ?roc.
That is the only reason why there is some switching going on between {-1,1} and {0,1}.

Michel Ballings

Answer or follow-up question 2

Thank you!

Sign in to be able to add an answer or mark this question as resolved.