Examples of correlation()


Examples of cc.mallet.fst.confidence.ConfidenceEvaluator.correlation()

     
    }
   
    ConfidenceEvaluator evaluator = new ConfidenceEvaluator(entityConfidences, this.numberBins);
    out.println("correlation: " + evaluator.correlation());
    out.println("avg precision: " + evaluator.getAveragePrecision());
    out.println("coverage\taccuracy:\n" + evaluator.accuracyCoverageValuesToString());   
    double[] ac = evaluator.getAccuracyCoverageValues();
    for (int i=0; i < ac.length; i++) {
      int marks = (int)(ac[i]*25.0);
 
View Full Code Here

Examples of edu.ucla.sspace.evaluation.WordChoiceReport.correlation()

            WordSimilarityReport report =
                WordSimilarityEvaluationRunner.evaluate(
                        sspace, wordSimilarity, similarity);
            verbose("Results for %s:%n%s%n", wordSimilarity, report);
            results[resultIndex++] = String.format(
                    "%4.3f", report.correlation());
        }

        // Run the word priming tests.
        for (WordPrimingTest wordPrimingTest : wordPrimingTests) {
            WordPrimingReport report = wordPrimingTest.evaluate(sspace);
View Full Code Here

Examples of edu.ucla.sspace.evaluation.WordSimilarityReport.correlation()

            WordSimilarityReport report =
                WordSimilarityEvaluationRunner.evaluate(
                        sspace, wordSimilarity, similarity);
            verbose("Results for %s:%n%s%n", wordSimilarity, report);
            results[resultIndex++] = String.format(
                    "%4.3f", report.correlation());
        }

        // Run the word priming tests.
        for (WordPrimingTest wordPrimingTest : wordPrimingTests) {
            WordPrimingReport report = wordPrimingTest.evaluate(sspace);
View Full Code Here

Examples of org.apache.commons.math.stat.correlation.PearsonsCorrelation.correlation()

     
      double[] concatExpArray = ArrayUtils.toPrimitive(concatExp.toArray(new Double[concatExp.size()]));
      double[] concatGSArray = ArrayUtils.toPrimitive(concatGS.toArray(new Double[concatGS.size()]));

      PearsonsCorrelation pearson = new PearsonsCorrelation();
      Double correl = pearson.correlation(concatExpArray, concatGSArray);
     
      sb.append(correl.toString());
    }
    else if (metric == PearsonMean)
    {
View Full Code Here

Examples of org.apache.commons.math.stat.correlation.PearsonsCorrelation.correlation()

   
    double[] expArray = ArrayUtils.toPrimitive(expScores.toArray(new Double[expScores.size()]));
    double[] gsArray = ArrayUtils.toPrimitive(gsScores.toArray(new Double[gsScores.size()]));

    PearsonsCorrelation pearson = new PearsonsCorrelation();
    Double correl = pearson.correlation(expArray, gsArray);
   
    FileUtils.writeStringToFile(
        new File(OUTPUT_DIR + "/" + mode.toString().toLowerCase() + "/" + dataset.toString() + ".txt"),
        correl.toString());
  }
View Full Code Here

Examples of org.apache.commons.math.stat.correlation.PearsonsCorrelation.correlation()

     
      double[] concatExpArray = ArrayUtils.toPrimitive(concatExp.toArray(new Double[concatExp.size()]));
      double[] concatGSArray = ArrayUtils.toPrimitive(concatGS.toArray(new Double[concatGS.size()]));

      PearsonsCorrelation pearson = new PearsonsCorrelation();
      Double correl = pearson.correlation(concatExpArray, concatGSArray);
     
      sb.append(correl.toString());
    }
    else if (metric == PearsonMean)
    {
View Full Code Here

Examples of org.apache.commons.math.stat.correlation.PearsonsCorrelation.correlation()

   
    double[] expArray = ArrayUtils.toPrimitive(expScores.toArray(new Double[expScores.size()]));
    double[] gsArray = ArrayUtils.toPrimitive(gsScores.toArray(new Double[gsScores.size()]));

    PearsonsCorrelation pearson = new PearsonsCorrelation();
    Double correl = pearson.correlation(expArray, gsArray);
   
    FileUtils.writeStringToFile(
        new File(OUTPUT_DIR + "/" + mode.toString().toLowerCase() + "/" + dataset.toString() + ".txt"),
        correl.toString());
  }
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.