- Timestamp:
- 2021-02-02T22:28:26+13:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/mars/src/java/org/greenstone/mars/WekaUtil.java
r34788 r34797 31 31 { 32 32 public final static String AROUSAL_ATTRIBUTE_NAME = "arousal_sample_26500ms"; 33 public final static String VAL ANCE_ATTRIBUTE_NAME = "valence_sample_26500ms";33 public final static String VALENCE_ATTRIBUTE_NAME = "valence_sample_26500ms"; 34 34 35 35 … … 76 76 // top up, 77 77 // e.g. '471' representing arousal in ground-truth files 78 // e.g. '472' representing val ance in ground-truth files78 // e.g. '472' representing valence in ground-truth files 79 79 remove_option_args += "," + additional_remove; 80 80 } … … 84 84 try { 85 85 // remove ordinal attributes and any additional topups, 86 // such as 'val ance' (when predicting 'arousal') and vice versa86 // such as 'valence' (when predicting 'arousal') and vice versa 87 87 88 88 String[] filter_options = weka.core.Utils.splitOptions(remove_option_args); … … 109 109 DataSource gt_data_source = new DataSource(gt_datasource_filename); 110 110 Instances gt_instances = gt_data_source.getDataSet(); 111 gt_instances = applyFilter(gt_instances,additional_remove); // remove 'val ance' or 'arousal'111 gt_instances = applyFilter(gt_instances,additional_remove); // remove 'valence' or 'arousal' 112 112 113 113 gt_instances.setClassIndex(gt_instances.numAttributes() - 1); … … 138 138 Instances data_instances = data_source.getDataSet(); 139 139 140 // Training dataset has two ground-truth attributes: 'arousal' and 'val ance'.140 // Training dataset has two ground-truth attributes: 'arousal' and 'valence'. 141 141 // When training for one, need to knock out the other. This is the purpose 142 142 // of 'additional_attribute_remove' … … 265 265 else { 266 266 // Dealing with ground-truth data: 267 // => already has 'arousal' and 'val ance' attributes267 // => already has 'arousal' and 'valence' attributes 268 268 // => need to keep the 'predict_attribute_name' and remove the other one 269 269 // => (its -R value of which is specified in 'additional_attribute_remove')
Note:
See TracChangeset
for help on using the changeset viewer.