Changeset 4629:db8c14386635 in orange


Ignore:
Timestamp:
05/08/08 23:46:12 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
91e8d58c58882026de1e6906a9764bc8c1ed80b4
Message:
  • relieff did not invalidate the cached results when m or k changed
Location:
source/orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orange/measures.cpp

    r4627 r4629  
    10061006  prevExamples(-1), 
    10071007  prevWeight(0), 
    1008   prevChecksum(0) 
     1008  prevChecksum(0), 
     1009  prevK(-1), 
     1010  prevM(-1) 
    10091011{} 
    10101012 
     
    11811183  int newChecksum; 
    11821184  bool renew = false; 
    1183   if ((prevExamples != gen->version) || (weightID != prevWeight)) { 
     1185  if ((prevExamples != gen->version) || (weightID != prevWeight) || (k != prevK) || (m != prevM)) { 
    11841186    newChecksum = gen->checkSum(true); 
    11851187    renew = true; 
     
    11961198    prevWeight = weightID; 
    11971199    prevChecksum = newChecksum; 
     1200    prevK = k; 
     1201    prevM = m; 
    11981202  } 
    11991203} 
  • source/orange/relief.hpp

    r4627 r4629  
    108108 
    109109    vector<float> measures; 
    110     int prevExamples, prevWeight, prevChecksum; 
     110    int prevExamples, prevWeight, prevChecksum, prevK, prevM; 
    111111 
    112112    // the first int the index of the reference example 
Note: See TracChangeset for help on using the changeset viewer.