Changeset 101 for trunk/CrossPare


Ignore:
Timestamp:
05/17/16 12:31:47 (9 years ago)
Author:
sherbold
Message:
  • second (and now working) attempt to fix the bug in AbstractCODEP
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/wekaclassifier/AbstractCODEP.java

    r90 r101  
    7272            throw new RuntimeException("classifier must be trained first, call to buildClassifier missing"); 
    7373        } 
    74         Instances tmp = new Instances(instance.dataset()); 
    75         tmp.clear(); 
     74        Instances tmp = new Instances("tmp", internalAttributes, 1); 
     75        tmp.setClass(internalAttributes.get(internalAttributes.size() - 1)); 
    7676        tmp.add(createInternalInstance(instance)); 
    7777        return codepClassifier.classifyInstance(tmp.firstInstance()); 
Note: See TracChangeset for help on using the changeset viewer.