Hi Friends,

I want to assign asymmetric cost values at the time training.

For example : For false negative cost should be 10 and for For false
positive it should be 1.

Can some help me with this.


Code:

svmFit <- train(Y ~ .,
                data = train,
                method = "svmRadial",
                preProc = c("center", "scale"),
                cost=5,
                trControl = trainControl(method = "repeatedcv", repeats =
5,classProbs =  TRUE))


So I need a way to force cost of 10 for false negative and 1 for false
positive at time of training.

Regards,
Bharat

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to