Question: Assignment 10

Question: Assignment 10

par Shu'ayb Simmons,
Nombre de réponses : 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.


En réponse à Shu'ayb Simmons

Re: Question: Assignment 10

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