Changeset 90 for trunk


Ignore:
Timestamp:
05/12/16 09:53:32 (9 years ago)
Author:
sherbold
Message:
  • fixed a bug in the COPED implementation
File:
1 edited

Legend:

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

    r86 r90  
    7272            throw new RuntimeException("classifier must be trained first, call to buildClassifier missing"); 
    7373        } 
    74         return codepClassifier.classifyInstance(createInternalInstance(instance)); 
     74        Instances tmp = new Instances(instance.dataset()); 
     75        tmp.clear(); 
     76        tmp.add(createInternalInstance(instance)); 
     77        return codepClassifier.classifyInstance(tmp.firstInstance()); 
    7578    } 
    7679 
Note: See TracChangeset for help on using the changeset viewer.