Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Examples

R provides the XnullXR functionsR functions (R function)R functionsR libraries (R library)R functionsR option (R option)R functionsR packages (R package)R functionsDatasets (Dataset)R functionsR functionssvm in e1071 as an interface to LIBSVM, which provides a very efficient and fast implementation.



  library(e1071)
  iris.svm <- svm(Species ~ ., data=iris, probability=TRUE)
  plot(iris.svm, iris, Petal.Width ~ Petal.Length,
          slice = list(Sepal.Width = 3, Sepal.Length = 4))
  pred <- predict(iris.svm, iris, probability = TRUE)
  attr(pred, "prob") # to get the probabilities

kernlab for kernel learning provides ksvm and is more integrated into R so that different kernels can easily be explored. A new class called kernel is introduced, an kernel functions are objects of this class.



Copyright © 2004-2008 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
PDF version is properly formatted and forms a comprehensive book (draft with over 600 pages).
Brought to you by Togaware.