Changeset 34797 for main/trunk/model-sites-dev/mars/src/java/org/greenstone/mars/WekaApplyValenceModel.java
- Timestamp:
- 2021-02-02T22:28:26+13:00 (3 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/mars/src/java/org/greenstone/mars/WekaApplyValenceModel.java
r34788 r34797 26 26 // https://waikato.github.io/weka-wiki/use_weka_in_your_java_code/ 27 27 28 class WekaApplyVal anceModel28 class WekaApplyValenceModel 29 29 { 30 30 … … 47 47 // to trigger calculating the error on the predicted vaues 48 48 49 boolean has_groundtruth_data = WekaUtil.instancesHavePredictAttribute(unlabeled_instances,WekaUtil.VAL ANCE_ATTRIBUTE_NAME);49 boolean has_groundtruth_data = WekaUtil.instancesHavePredictAttribute(unlabeled_instances,WekaUtil.VALENCE_ATTRIBUTE_NAME); 50 50 51 51 // The following deals with (i) internally, ensuring that what is returned is suitable for making predictions on 52 52 Instances filtered_unlabeled_instances 53 53 = WekaUtil.filterInstancesForApplying(unlabeled_instances,has_groundtruth_data, 54 WekaUtil.VAL ANCE_ATTRIBUTE_NAME,"471");54 WekaUtil.VALENCE_ATTRIBUTE_NAME,"471"); 55 55 56 56 // The following deals with (ii)
Note:
See TracChangeset
for help on using the changeset viewer.