Ignore:
Timestamp:
06/16/16 09:43:25 (8 years ago)
Author:
sherbold
Message:
  • fixed bug in WHICH scoring function
File:
1 edited

Legend:

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

    r126 r127  
    254254            support = numMatches / ((double) traindata.size()); 
    255255            if (numMatches > 0) { 
    256                 e1 = numMatchDefective / ((double) numMatches); 
    257                 e2 = numMatchNondefective / ((double) numMatches); 
     256                e1 = numMatchNondefective / ((double) numMatches); 
     257                e2 = numMatchDefective / ((double) numMatches); 
    258258                if (e2 > 0) { 
    259259                    score = e1 / e2 * support; 
Note: See TracChangeset for help on using the changeset viewer.