Ignore:
Timestamp:
03/27/12 18:38:32 (2 years ago)
Author:
Janez Demšar <janez.demsar@…>
Branch:
default
Message:

Renamed TreeStopCriteria_common.min_examples to min_instances, fixed alias (fixes #1157)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/tdidt_stop.cpp

    r6531 r10669  
    6868TTreeStopCriteria_common::TTreeStopCriteria_common(float aMaxMajor, float aMinExamples) 
    6969: maxMajority(aMaxMajor), 
    70   minExamples(aMinExamples) 
     70  minInstances(aMinExamples) 
    7171{} 
    7272 
     
    7575: TTreeStopCriteria(old), 
    7676  maxMajority(old.maxMajority), 
    77   minExamples(old.minExamples) 
     77  minInstances(old.minInstances) 
    7878{} 
    7979 
     
    8484 
    8585  PDistribution classDist = ocont ? ocont->classes : getClassDistribution(gen, weight); 
    86   if (classDist->abs<minExamples) 
     86  if (classDist->abs<minInstances) 
    8787    return true; // not enough examples 
    8888 
Note: See TracChangeset for help on using the changeset viewer.