Changeset 10669:a6f1ccf21f63 in orange


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)

Location:
source/orange
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/orange/_aliases.txt

    r10374 r10669  
    5050 
    5151TreeStopCriteria_common 
    52 min_instances min_examples 
     52min_examples min_instances 
    5353 
    5454TreeClassifier 
  • 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 
  • source/orange/tdidt_stop.hpp

    r6531 r10669  
    4141  __REGISTER_CLASS 
    4242  float maxMajority; //P a maximal proportion of majority class for division to continue 
    43   float minExamples; //P a minimal number of examples for division to continue 
     43  float minInstances; //P a minimal number of examples for division to continue 
    4444 
    4545  TTreeStopCriteria_common(const TTreeStopCriteria_common &); 
Note: See TracChangeset for help on using the changeset viewer.