How to compare several models in R

r
model

#1

hello,

Currently I am doing several classification models:
ctrl <- trainControl(method=“repeatedcv”,repeats = 10)
forestFit <- train(as.factor(Recommended) ~ Material + Decoration + Pattern.Type + Area + FabricType + Rating + Style + Size + Season + Price + waiseline + NeckLine +newrating
,data = train1,method = “rf”,nodesize = 1,ntree = 10000,trControl = ctrl)
prediction <- predict(forestFit, newdata = test1, type = ‘class’)
#SVM:
svmfit <- train(as.factor(Recommended) ~ ., data = train1,method = “svmRadial”,trControl = ctrl)

How can i compare these models based on their accuracy and Kappa statistics??


#2

Hi @pagal_guy,

You can see example here. So this guy is comparing RMSE scores of different models, similarly you can keep a track of Accuracy of your training and CV dataset.

Regards,
Aayush