Question: Assignment 10

Question: Assignment 10

by Shu'ayb Simmons -
Number of replies: 2

Hi, 

Is there a specific type argument we need to provide for predict? For DT it only works if in predict(type=class) but this does not work for SVM and KNN. Thank you.


In reply to Shu'ayb Simmons

Re: Question: Assignment 10

by Erik Spence -
Yes. As you observe, the predict function needs to be called slightly differently depending on the type of model being used.