5960616263646566676869
Svmlinkernel linkernel=new Svmlinkernel(data,y); Svm linsvm=new Svm(linkernel); lambda=10; k=0; do { test=linsvm.relax(lambda,omega); // System.out.printf(test); k++; } while (test > 1.e-3 && k < 100); int nerror=0; for (i=0;i<M;i++) {
7879808182838485868788
Svmpolykernel polykernel=new Svmpolykernel(data,y,1.0,1.0,2.0); Svm polysvm=new Svm(polykernel); lambda=10; k=0; do { test=polysvm.relax(lambda,omega); // System.out.printf(test); k++; } while (test > 1.e-3 && k < 100); nerror=0; for (i=0;i<M;i++) {
949596979899100101102103104
Svmgausskernel gausskernel=new Svmgausskernel(data,y,1.0); Svm gausssvm=new Svm(gausskernel); lambda=10; k=0; do { test=gausssvm.relax(lambda,omega); // System.out.printf(test); k++; } while (test > 1.e-3 && k < 100); nerror=0; for (i=0;i<M;i++) {
140141142143144145146147148149150
Svm linsvm2=new Svm(linkernel2); System.out.printf("Errors: "); for (lambda=0.001;lambda<10000;lambda *= 10) { k=0; do { test=linsvm2.relax(lambda,omega); // System.out.printf(test); k++; } while (test > 1.e-3 && k < 100); nerror=0; for (i=0;i<M;i++) {
184185186187188189190191192193194
Svm polysvm2=new Svm(polykernel2); System.out.printf("Errors: "); for (lambda=0.001;lambda<10000;lambda *= 10) { k=0; do { test=polysvm2.relax(lambda,omega); // System.out.printf(test); k++; } while (test > 1.e-3 && k < 100); // Test training set nerror=0;
229230231232233234235236237238239
Svm gausssvm2=new Svm(gausskernel2); System.out.printf("Errors: "); for (lambda=0.001;lambda<10000;lambda *= 10) { k=0; do { test=gausssvm2.relax(lambda,omega); // System.out.printf(test); k++; } while (test > 1.e-3 && k < 100); nerror=0; for (i=0;i<M;i++) {