public class SupportVectorMachineEx2 extends Object
Classifies Fisher's iris data after first selecting parameter values using cross-validation.
This example uses stratified cross-validation to select parameter settings
for C and \(\gamma\) using the minimum CV error criterion. Then, a
SVClassification
model
is configured with these "best" settings and fitted to the training sample.
The classification errors on the entire dataset are shown. Compare these errors with those
given in SupportVectorMachineEx1
, where default values were used.
Constructor and Description |
---|
SupportVectorMachineEx2() |
Copyright © 2020 Rogue Wave Software. All rights reserved.