Examples of weightedAreaUnderROC()


Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

    result[current++] = new Double(eval.weightedTrueNegativeRate());
    result[current++] = new Double(eval.weightedFalseNegativeRate());
    result[current++] = new Double(eval.weightedPrecision());
    result[current++] = new Double(eval.weightedRecall());
    result[current++] = new Double(eval.weightedFMeasure());
    result[current++] = new Double(eval.weightedAreaUnderROC());
   
    // Unweighted IR stats
    result[current++] = new Double(eval.unweightedMacroFmeasure());
    result[current++] = new Double(eval.unweightedMicroFmeasure());
   
View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

    result[current++] = new Double(eval.weightedTrueNegativeRate());
    result[current++] = new Double(eval.weightedFalseNegativeRate());
    result[current++] = new Double(eval.weightedPrecision());
    result[current++] = new Double(eval.weightedRecall());
    result[current++] = new Double(eval.weightedFMeasure());
    result[current++] = new Double(eval.weightedAreaUnderROC());
   
    // Timing stats
    result[current++] = new Double(trainTimeElapsed / 1000.0);
    result[current++] = new Double(testTimeElapsed / 1000.0);
    if(canMeasureCPUTime) {
View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

    result[current++] = new Double(eval.weightedTrueNegativeRate());
    result[current++] = new Double(eval.weightedFalseNegativeRate());
    result[current++] = new Double(eval.weightedPrecision());
    result[current++] = new Double(eval.weightedRecall());
    result[current++] = new Double(eval.weightedFMeasure());
    result[current++] = new Double(eval.weightedAreaUnderROC());
   
    // Unweighted IR stats
    result[current++] = new Double(eval.unweightedMacroFmeasure());
    result[current++] = new Double(eval.unweightedMicroFmeasure());
   
View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

                    test.setClassIndex(1);
                    classifier.buildClassifier(train);
                    ev.evaluateModel(classifier, test);
                }
               
                m_ROCs[snpNum] = ev.weightedAreaUnderROC();

                if (snpNum % 1000 == 0) {
                    System.out.println("index: " + snpNum + "; elapsed time (s): " + (double) (System.currentTimeMillis() - startTime) / 1000);
                }
            } catch (Exception ex) {
View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

            ev = new Evaluation(learnPostSelNaive);
            ev.crossValidateModel(Classifier.makeCopy(bn), learnPostSelNaive,Math.min(CVfoldNum,learn.numInstances()),new Random(removeNaive_counter));
//            bnCopy.buildClassifier(learnPostSelNaive);   //this only gives the bayes score.. is that interesting?

            accuracyRes[removeNaive_counter] = ev.pctCorrect();
            ROCRes[removeNaive_counter] = ev.weightedAreaUnderROC();
        }

        wrep.BGS_multivariate_ROC_ACC = new double[2][learn.numAttributes()-3];

//        for (int mv_counter = 0; mv_counter<accuracyRes.length-2; mv_counter++){
View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

            ev = new Evaluation(learnPreRandRemove);
            ev.crossValidateModel(Classifier.makeCopy(bn), learnPreRandRemove,Math.min(CVfoldNum,learn.numInstances()),new Random(winningNaiveRemove));
//            bnCopy.buildClassifier(learnPostSelNaive);   //this only gives the bayes score.. is that interesting?

            double midAttACC = ev.pctCorrect();
            double midAttROC = ev.weightedAreaUnderROC();

            wrep.BGS_midAttributeACC = midAttACC;
            wrep.BGS_midAttributeROC = midAttROC;

View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

                    Evaluation evPostRand = new Evaluation(learnPostRandRemove);
                    evPostRand.crossValidateModel(yBNcopy, learnPostRandRemove,Math.min(CVfoldNum,learn.numInstances()),new Random(winningNaiveRemove));

                    accPostRandRemove[numToRem_counter][iteration_counter] = evPostRand.pctCorrect();
                    rocPostRandRemove[numToRem_counter][iteration_counter] = evPostRand.weightedAreaUnderROC();
//                    if ((numToRem_counter % 100)==0){System.out.print(numToRem_counter);System.out.println("RandomRemovalLoop: ".concat(String.valueOf(evPostRand.weightedAreaUnderROC())));}
                }
            }

            //pick a winner
View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

                    Evaluation evFinalRound = new Evaluation(learnFinalRound);
                    evFinalRound.crossValidateModel(zBNcopy, learnFinalRound,Math.min(CVfoldNum,learn.numInstances()),new Random(winningNaiveRemove));

                    accFinalRound[winningPostRandRemove] = evFinalRound.pctCorrect();
                    rocFinalRound[winningPostRandRemove] = evFinalRound.weightedAreaUnderROC();

                    if (evFinalRound.weightedAreaUnderROC() > rocFinal){
                        learnFinal = learnFinalRound;
                        holdFinal = holdFinalRound;
                        rocFinal = evFinalRound.weightedAreaUnderROC();
View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

                    evFinalRound.crossValidateModel(zBNcopy, learnFinalRound,Math.min(CVfoldNum,learn.numInstances()),new Random(winningNaiveRemove));

                    accFinalRound[winningPostRandRemove] = evFinalRound.pctCorrect();
                    rocFinalRound[winningPostRandRemove] = evFinalRound.weightedAreaUnderROC();

                    if (evFinalRound.weightedAreaUnderROC() > rocFinal){
                        learnFinal = learnFinalRound;
                        holdFinal = holdFinalRound;
                        rocFinal = evFinalRound.weightedAreaUnderROC();
                        accFinal = evFinalRound.pctCorrect();
                        wrep.BGS_postAttributeACC = accFinal;
View Full Code Here

Examples of weka.classifiers.Evaluation.weightedAreaUnderROC()

                    rocFinalRound[winningPostRandRemove] = evFinalRound.weightedAreaUnderROC();

                    if (evFinalRound.weightedAreaUnderROC() > rocFinal){
                        learnFinal = learnFinalRound;
                        holdFinal = holdFinalRound;
                        rocFinal = evFinalRound.weightedAreaUnderROC();
                        accFinal = evFinalRound.pctCorrect();
                        wrep.BGS_postAttributeACC = accFinal;
                        wrep.BGS_postAttributeROC = rocFinal;
                    } else if (evFinalRound.weightedAreaUnderROC() == rocFinal){
                        if (evFinalRound.pctCorrect() > accFinal){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.