Last change
on this file since 4 was
2,
checked in by sherbold, 10 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
746 bytes
|
Line | |
---|
1 | package de.ugoe.cs.cpdp.training;
|
---|
2 |
|
---|
3 | import weka.classifiers.Classifier;
|
---|
4 | import weka.classifiers.functions.SMO;
|
---|
5 | import weka.classifiers.functions.supportVector.RBFKernel;
|
---|
6 |
|
---|
7 | public 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.