Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/25/09 17:46:17 (15 years ago)
Author:
gkronber
Message:

Fixed #645 (Tree evaluators precompile the model for each evaluation of a row).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/3.3/MulticlassOneVsOneAnalyzer.cs

    r1796 r1891  
    8686        BakedTreeEvaluator evaluator = new BakedTreeEvaluator();
    8787        evaluator.ResetEvaluator(dataset, targetVariable, trainingSamplesStart, trainingSamplesEnd, 1.0);
    88 
     88        evaluator.PrepareForEvaluation(functionTree);
    8989        for(int i = 0; i < (samplesEnd - samplesStart); i++) {
    90           double est = evaluator.Evaluate(functionTree, i + samplesStart);
     90          double est = evaluator.Evaluate(i + samplesStart);
    9191          if(est < 0.5) {
    9292            CastVote(votes, i, classAValue, classValues);
Note: See TracChangeset for help on using the changeset viewer.