Adschai:

here is an example for class.weights (isn't it on the help page?):

      data(iris)
      i2 <- iris
      levels(i2$Species)[3] <- "versicolor"
      summary(i2$Species)
      wts <- 100 / table(i2$Species)
      wts
      m <- svm(Species ~ ., data = i2, class.weights = wts)

Cheers,
David

______________________________________________
R-help@stat.math.ethz.ch mailing list
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