Package uk.ac.ucl.panda.retrieval

Examples of uk.ac.ucl.panda.retrieval.MeanVarianceScoreDoc


  public void report(QualityQuery qq, TopDocsMeanVariance td, String docNameField, Searcher searcher) throws IOException {
    if (logger==null) {
      return;
    }
    MeanVarianceScoreDoc sd[] = td.MeanVariancescoreDocs;
    String sep = " \t ";
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    for (int i=0; i<sd.length; i++) {
      String docName = xt.docName(searcher,sd[i].doc);
      logger.println(
View Full Code Here


  /* Analyze/judge results for a single quality query; optionally log them. */
  private QualityStats analyzeQueryResults(QualityQuery qq, Query q,
      TopDocsMeanVariance td, Judge judge, PrintWriter logger,
      long searchTime) throws IOException {
    QualityStats stts = new QualityStats(judge.maxRecall(qq), searchTime);
    MeanVarianceScoreDoc sd[] = td.MeanVariancescoreDocs;
    long t1 = System.currentTimeMillis(); // extraction of first doc name we
    // meassure also construction of
    // doc name extractor, just in
    // case.
    DocNameExtractor xt = new DocNameExtractor(docNameField);
View Full Code Here

  // Correlation adjust the TOP 10 rank
  private TopDocsMeanVariance Correlation_Adjust(TopDocsMeanVariance td,
      double c) throws IOException {
    double log2toe = 1.0d / Math.log(2.0d);
    TopDocsMeanVariance f_td = td;
    MeanVarianceScoreDoc temp[] = f_td.MeanVariancescoreDocs;
    // System.out.println("number: "+temp.length);
    TopMeanVarianceDocCollector collector = null;
    for (int d = 0; d < 19; d++) {
      collector = new TopMeanVarianceDocCollector(temp.length);
      for (int j = 0; j <= d; j++) {
View Full Code Here

  // Correlation adjust the TOP 10 rank
  private TopDocsMeanVariance Correlation_Adjust_AP(TopDocsMeanVariance td,
      double c) throws IOException {
    double log2toe = 1.0d / Math.log(2.0d);
    TopDocsMeanVariance f_td = td;
    MeanVarianceScoreDoc temp[] = f_td.MeanVariancescoreDocs;
    // System.out.println("number: "+temp.length);
    TopMeanVarianceDocCollector collector = null;
    HashMap scoreHM = new HashMap();
    for (int k = 0; k < temp.length; k++) {
      scoreHM.put(temp[k].doc, temp[k].score);
View Full Code Here

  private TopDocsMeanVariance Correlation_Adjust_NDCG(TopDocsMeanVariance td,
      double c) throws IOException {
    double log2toe = 1.0d / Math.log(2.0d);
    TopDocsMeanVariance f_td = td;
    MeanVarianceScoreDoc temp[] = f_td.MeanVariancescoreDocs;
    // System.out.println("number: "+temp.length);
    TopMeanVarianceDocCollector collector = null;
    HashMap scoreHM = new HashMap();
    for (int k = 0; k < temp.length; k++) {
      scoreHM.put(temp[k].doc, temp[k].score);
View Full Code Here

  // Correlation adjust the TOP 10 rank
  private TopDocsMeanVariance Correlation_Adjust_RR(TopDocsMeanVariance td,
      double c) throws IOException {
    double log2toe = 1.0d / Math.log(2.0d);
    TopDocsMeanVariance f_td = td;
    MeanVarianceScoreDoc temp[] = f_td.MeanVariancescoreDocs;
    // System.out.println("number: "+temp.length);
    TopMeanVarianceDocCollector collector = null;
    HashMap scoreHM = new HashMap();
    for (int k = 0; k < temp.length; k++) {
      scoreHM.put(temp[k].doc, temp[k].score);
View Full Code Here

    }
  }

  private void outresult(QualityQuery qq, TopDocsMeanVariance td,
      PrintWriter logger) throws IOException {
    MeanVarianceScoreDoc sd[] = td.MeanVariancescoreDocs;
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    // System.out.println( sd.length );
    for (int i = 0; i < sd.length; i++) {
      String docName = xt.docName(searcher, sd[i].doc);
      if (logger != null) {
View Full Code Here

        "mean-var-pair-trec8-mu=0"));
    PrintWriter logger = new PrintWriter(meanVarFile, true);
    String sep = " \t ";
    DocNameExtractor xt = new DocNameExtractor(docNameField);
    TopDocsMeanVariance f_td = td;
    MeanVarianceScoreDoc temp[] = f_td.MeanVariancescoreDocs;
    for (int d = 0; d < temp.length; d++) {
      for (int j = d + 1; j < temp.length; j++) {
        double rou = correlation(temp[d].doc, temp[j].doc);
        String docName1 = xt.docName(searcher, temp[d].doc);
        String docName2 = xt.docName(searcher, temp[j].doc);
View Full Code Here

TOP

Related Classes of uk.ac.ucl.panda.retrieval.MeanVarianceScoreDoc

Copyright © 2018 www.massapicom. 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.