Ignore:
Timestamp:
03/13/12 20:37:36 (2 years ago)
Author:
martin@…
Branch:
default
Message:

Changes to rule learning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/lib_learner.cpp

    r10377 r10517  
    20992099    bool setPrefixRules; 
    21002100    bool optimizeBetasFlag; 
    2101  
    2102     if (!PyArg_ParseTuple(args, "O&ffO&|O&iiO&O&:RuleClassifier.call", cc_RuleList, &rules, &minSignificance, &minBeta, pt_ExampleGenerator, &gen, pt_weightByGen(gen), &weightID, &setPrefixRules, &optimizeBetasFlag, cc_Classifier, &classifier, cc_DistributionList, &probList)) 
    2103       return PYNULL; 
    2104  
    2105     TRuleClassifier *rc = new TRuleClassifier_logit(rules, minSignificance, minBeta, gen, weightID, classifier, probList,setPrefixRules, optimizeBetasFlag); 
     2101    float penalty = 0.01f; 
     2102 
     2103    if (!PyArg_ParseTuple(args, "O&fffO&|O&iiO&O&:RuleClassifier.call", cc_RuleList, &rules, &minSignificance, &minBeta, &penalty, pt_ExampleGenerator, &gen, pt_weightByGen(gen), &weightID, &setPrefixRules, &optimizeBetasFlag, cc_Classifier, &classifier, cc_DistributionList, &probList)) 
     2104      return PYNULL; 
     2105 
     2106    TRuleClassifier *rc = new TRuleClassifier_logit(rules, minSignificance, minBeta, penalty, gen, weightID, classifier, probList, setPrefixRules, optimizeBetasFlag); 
    21062107    PRuleClassifier ruleClassifier = rc; 
    21072108//    ruleClassifier = new SELF_AS(TRuleClassifier)(rules, gen, weightID); 
Note: See TracChangeset for help on using the changeset viewer.