I'm using the package e1071 in R in order to build a one-class SVM model. I don't know how to do that and I neither find any example on the Internet.
Could someone give an example code to characterize, for example, the class "setosa" in the "iris" dataset with a one-class classification model and then test all the examples in the same dataset (in order to check what examples belong to the characterization of the "setosa" class and what examples not)?
I think this is what you want:
Output:
-Summary:
-Predictions (only some of the predictions are shown here (where Species=='setosa') for visual reason):
A little bit elaborated code with accuracy: train=78.125 test= 91.53: