Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to compare several models in R

$
0
0

@pagal_guy wrote:

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??

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles