Changeset 3627:8e5ccfa84e2b in orange


Ignore:
Timestamp:
04/30/07 17:56:59 (7 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
53c4bcc01845654ba5805c3716d59fcf30241e76
Message:
  • fixed a wrong order of arguments, causing problems on VS 2005
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/c4.5.cpp

    r3336 r3627  
    3636bool c45Loaded = false; 
    3737 
    38 typedef void *learnFunc(char gainRatio, char subset, char batch, char probThresh, 
    39                        int trials, int minObjs, int window, int increment, float cf, char prune); 
     38typedef void *learnFunc(int trials, char gainRatio, char subset, char batch, char probThresh, 
     39                       int minObjs, int window, int increment, float cf, char prune); 
    4040typedef void garbageFunc(); 
    4141 
     
    457457{   if (!gen->domain->classVar) 
    458458      raiseError("class-less domain"); 
     459    if (!gen->numberOfExamples()) 
     460      raiseError("no examples"); 
     461    if (!gen->domain->attributes->size()) 
     462      raiseError("no attributes"); 
    459463  
    460464    convertGenerator(gen); 
Note: See TracChangeset for help on using the changeset viewer.