Re: [R] handling constant factors in prediction using svm

2011-10-07 Thread Divyam
Ok. I should have made the question clearer. By asking is there anyway to solve this problem, what I meant was, how to give exceptions to such scenarios. My mistake and apologies for that. I can understand why prediction cannot be done when a trained variable is missing in the test set :). thanks f

Re: [R] handling constant factors in prediction using svm

2011-10-04 Thread Uwe Ligges
On 04.10.2011 08:53, Divyam wrote: Hi users! I am fitting a model with several factor variables as independents using svm. since there are lots of categorical variables,the training and test data sets have been created using dummy.data.frame option from dummies package. I have a factor A in th

[R] handling constant factors in prediction using svm

2011-10-04 Thread Divyam
Hi users! I am fitting a model with several factor variables as independents using svm. since there are lots of categorical variables,the training and test data sets have been created using dummy.data.frame option from dummies package. I have a factor A in the training data set with 2 levels (0,1)