- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/wekaclassifier/FixClass.java
r86 r135 23 23 24 24 /** 25 * Simple classifier that always predicts the same class 25 * Simple classifier that always predicts the same class. 26 26 * 27 27 * @author Steffen Herbold … … 29 29 public class FixClass extends AbstractClassifier { 30 30 31 /** 32 * default serialization ID 33 */ 31 34 private static final long serialVersionUID = 1L; 32 35 36 /** 37 * default prediction: non-defective 38 */ 33 39 private double fixedClassValue = 0.0d; 34 35 public FixClass() {36 // TODO Auto-generated constructor stub37 }38 40 39 41 /** … … 66 68 } 67 69 70 /* 71 * (non-Javadoc) 72 * 73 * @see weka.classifiers.AbstractClassifier#setOptions(java.lang.String[]) 74 */ 68 75 @Override 69 76 public void setOptions(String[] options) throws Exception { … … 71 78 } 72 79 80 /* 81 * (non-Javadoc) 82 * 83 * @see weka.classifiers.AbstractClassifier#classifyInstance(weka.core.Instance) 84 */ 73 85 @Override 74 86 public double classifyInstance(Instance instance) { … … 76 88 } 77 89 90 /* 91 * (non-Javadoc) 92 * 93 * @see weka.classifiers.Classifier#buildClassifier(weka.core.Instances) 94 */ 78 95 @Override 79 96 public void buildClassifier(Instances traindata) throws Exception {
Note: See TracChangeset
for help on using the changeset viewer.