source: trunk/CrossPare/src/de/ugoe/cs/cpdp/training/SMORBFKernelBagging.java @ 4

Last change on this file since 4 was 2, checked in by sherbold, 10 years ago
  • initial commit
  • Property svn:mime-type set to text/plain
File size: 746 bytes
Line 
1package de.ugoe.cs.cpdp.training;
2
3import weka.classifiers.Classifier;
4import weka.classifiers.functions.SMO;
5import weka.classifiers.functions.supportVector.RBFKernel;
6
7public class SMORBFKernelBagging extends BaggingTraining {
8
9        @Override
10        public String getName() {
11                return "SMORBFBagging";
12        }
13
14        @Override
15        protected Classifier setupClassifier() {
16                //CVParameterSelection ps = new CVParameterSelection();
17                final SMO smoRBF = new SMO();
18                smoRBF.setKernel(new RBFKernel());
19                return smoRBF;
20                /*ps.setClassifier(smoRBF);
21                try {
22                        // Parameter optimization with 5x5 CV
23                        ps.setNumFolds(5);
24                        ps.addCVParameter("C 1 100 4");
25                } catch (Exception e) {
26                        throw new RuntimeException();
27                }
28                return ps;*/
29        }
30
31}
Note: See TracBrowser for help on using the repository browser.