Package uk.ac.ucl.panda.retrieval

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


  // 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);
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++) {
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++) {
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++) {
View Full Code Here

      QualityQuery qq = qualityQueries[i];
      // generate query
      Query q = qqParser.parse(qq);
      // search with this query
      long t1 = System.currentTimeMillis();
      TopDocsMeanVariance td = searcher.search_var(q, null, maxResults,
          a1);

      // ///////////////////////////
      // ucl

      TopDocsMeanVariance f_td = td;
      if (a2 != 0) {
        f_td = Correlation_Adjust_RR(td, a2);
      }

      long searchTime = System.currentTimeMillis() - t1;
View Full Code Here

    FileOutputStream meanVarFile = new FileOutputStream(new File(
        "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);
View Full Code Here

TOP

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

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.