Re: [R] Specify feature weights in model prediction (CARET)

2011-03-17 Thread Kendric Wang
It was a general question to find out if the caret framework supported passing feature weights to any predictive model. But I guess, it may only make sense in the context of the model. The ones I am interested in would be svm and knn. Thanks, Kendric On Wed, Mar 16, 2011 at 6:20 PM, Max Kuhn wro

[R] Specify feature weights in model prediction (CARET)

2011-03-16 Thread Kendric Wang
Using the 'CARET' package, is it possible to specify weights for features used in model prediction? And for the 'knn' implementation, is there a way to choose a distance metric (i.e. Mahalanobis distance)? Thanks, ~Kendric [[alternative HTML version deleted]] ___

[R] Sporadic errors when training models using CARET

2010-11-22 Thread Kendric Wang
Hi. I am trying to construct a svmLinear model using the "caret" package (see code below). Using the same data, without changing any setting, sometimes it constructs the model successfully, and sometimes I get an index out of bounds error. Is this unexpected behaviour? I would appreciate any insigh