source: trunk/CrossPare/src/de/ugoe/cs/cpdp/dataselection/TestAsTraining.java @ 19

Last change on this file since 19 was 2, checked in by sherbold, 10 years ago
  • initial commit
  • Property svn:mime-type set to text/plain
File size: 748 bytes
Line 
1package de.ugoe.cs.cpdp.dataselection;
2
3import org.apache.commons.collections4.list.SetUniqueList;
4
5import weka.core.Instances;
6
7/**
8 * Uses the test data as training data.
9 * @author Steffen Herbold
10 *
11 */
12public class TestAsTraining implements ISetWiseDataselectionStrategy {
13
14        /**
15         * no parameters
16         */
17        @Override
18        public void setParameter(String parameters) {
19                // dummy
20        }
21
22        /**(non-Javadoc)
23         * @see de.ugoe.cs.cpdp.dataselection.ISetWiseDataselectionStrategy#apply(weka.core.Instances, org.apache.commons.collections4.list.SetUniqueList)
24         */
25        @Override
26        public void apply(Instances testdata, SetUniqueList<Instances> traindataSet) {
27                traindataSet.clear();
28                traindataSet.add(new Instances(testdata));
29        }
30
31}
Note: See TracBrowser for help on using the repository browser.