- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/dataselection/SetWiseEMContextSelection.java
r86 r135 41 41 public class SetWiseEMContextSelection implements ISetWiseDataselectionStrategy { 42 42 43 /** 44 * context factors 45 */ 43 46 private String[] project_context_factors; // = new String[]{"TND", "TNC", "TNF", "TLOC"}; 44 47 48 /* 49 * (non-Javadoc) 50 * 51 * @see de.ugoe.cs.cpdp.IParameterizable#setParameter(java.lang.String) 52 */ 45 53 @Override 46 54 public void setParameter(String parameters) { … … 103 111 } 104 112 catch (Exception e) { 105 throw new RuntimeException( 106 "error applying setwise EM clustering training data selection", 113 throw new RuntimeException("error applying setwise EM clustering training data selection", 107 114 e); 108 115 } 109 116 } 110 117 118 /* 119 * (non-Javadoc) 120 * 121 * @see de.ugoe.cs.cpdp.dataselection.ISetWiseDataselectionStrategy#apply(weka.core.Instances, 122 * org.apache.commons.collections4.list.SetUniqueList) 123 */ 111 124 @Override 112 125 public void apply(Instances testdata, SetUniqueList<Instances> traindataSet) { … … 131 144 * @return 132 145 */ 133 protected Instances getContextFactors(Instances testdata, SetUniqueList<Instances> traindataSet) 146 protected Instances getContextFactors(Instances testdata, 147 SetUniqueList<Instances> traindataSet) 134 148 { 135 149 // setup weka Instances for clustering … … 190 204 remove.add(traindata); 191 205 // Console.traceln(Level.WARNING, 192 // "rmove attribute "+attribute+" test: "+testdata.firstInstance().value(testdata.attribute(attribute))+" train: "+traindata.firstInstance().value(traindata.attribute(attribute))); 206 // "rmove attribute "+attribute+" test: 207 // "+testdata.firstInstance().value(testdata.attribute(attribute))+" train: 208 // "+traindata.firstInstance().value(traindata.attribute(attribute))); 193 209 } 194 210 } … … 218 234 } 219 235 catch (Exception e) { 220 throw new RuntimeException( 221 "Unexpected exception during normalization of distributional characteristics.", 236 throw new RuntimeException("Unexpected exception during normalization of distributional characteristics.", 222 237 e); 223 238 }
Note: See TracChangeset
for help on using the changeset viewer.