Changeset 34801
- Timestamp:
- 2021-02-02T23:38:03+13:00 (3 years ago)
- Location:
- main/trunk/model-sites-dev/mars/src/java/org/greenstone/mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/mars/src/java/org/greenstone/mars/WekaApplyArousalModel.java
r34798 r34801 50 50 = WekaUtil.filterInstancesForApplying(unlabeled_instances,has_groundtruth_data, 51 51 WekaUtil.AROUSAL_ATTRIBUTE_NAME,"472"); 52 53 WekaUtil.checkDatasetInstancesCompatible(filtered_unlabeled_instances,"472"); 52 54 53 55 // The following deals with (ii) 54 56 Instances groundtruth_instances = (has_groundtruth_data) ? filtered_unlabeled_instances : null; 55 57 58 System.out.println("Predicting arousal:"); 56 59 Instances labeled_instances = WekaUtil.makePredictions(classifier, filtered_unlabeled_instances, groundtruth_instances); 57 60 -
main/trunk/model-sites-dev/mars/src/java/org/greenstone/mars/WekaApplyValenceModel.java
r34798 r34801 52 52 WekaUtil.VALENCE_ATTRIBUTE_NAME,"471"); 53 53 54 WekaUtil.checkDatasetInstancesCompatible(filtered_unlabeled_instances,"471"); 55 54 56 // The following deals with (ii) 55 57 Instances groundtruth_instances = (has_groundtruth_data) ? filtered_unlabeled_instances : null; 56 58 59 System.out.println("Predicting valence:"); 57 60 Instances labeled_instances = WekaUtil.makePredictions(classifier, filtered_unlabeled_instances, groundtruth_instances); 58 61
Note:
See TracChangeset
for help on using the changeset viewer.