Ignore:
Timestamp:
11/17/15 20:42:08 (9 years ago)
Author:
atrautsch
Message:

metric matching hinzu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/eval/AbstractWekaEvaluation.java

    r41 r44  
    123123                output.append(",tn_" + ((IWekaCompatibleTrainer) trainer).getName()); 
    124124                output.append(",fp_" + ((IWekaCompatibleTrainer) trainer).getName()); 
    125                 output.append(",trainerror_" + ((IWekaCompatibleTrainer) trainer).getName()); 
    126                 output.append(",trainrecall_" + ((IWekaCompatibleTrainer) trainer).getName()); 
    127                 output.append(",trainprecision_" + ((IWekaCompatibleTrainer) trainer).getName()); 
    128                 output.append(",trainsuccHe_" + ((IWekaCompatibleTrainer) trainer).getName()); 
     125                //output.append(",trainerror_" + ((IWekaCompatibleTrainer) trainer).getName()); 
     126                //output.append(",trainrecall_" + ((IWekaCompatibleTrainer) trainer).getName()); 
     127                //output.append(",trainprecision_" + ((IWekaCompatibleTrainer) trainer).getName()); 
     128                //output.append(",trainsuccHe_" + ((IWekaCompatibleTrainer) trainer).getName()); 
    129129            } 
    130130            output.append(StringTools.ENDLINE); 
     
    136136 
    137137        Evaluation eval = null; 
    138         Evaluation evalTrain = null; 
     138        //Evaluation evalTrain = null; 
    139139        for (Classifier classifier : classifiers) { 
    140140            eval = createEvaluator(testdata, classifier); 
    141             evalTrain = createEvaluator(traindata, classifier); 
     141            //evalTrain = createEvaluator(traindata, classifier); 
    142142 
    143143            double pf = 
     
    195195            output.append("," + eval.numTrueNegatives(1)); 
    196196            output.append("," + eval.numFalsePositives(1)); 
    197             output.append("," + evalTrain.errorRate()); 
     197            /*output.append("," + evalTrain.errorRate()); 
    198198            output.append("," + evalTrain.recall(1)); 
    199199            output.append("," + evalTrain.precision(1)); 
     
    203203            else { 
    204204                output.append(",0"); 
    205             } 
     205            }*/ 
    206206        } 
    207207 
Note: See TracChangeset for help on using the changeset viewer.