Documentation of 'edu.uci.jforests.sample.RankingSample' Java class
RankingSample
edu.uci.jforests.sample

Class RankingSample



  • public class RankingSample
    extends Sample
    • Field Detail

      • numQueries

        public int numQueries
      • queryBoundaries

        public int[] queryBoundaries
      • queryIndices

        public int[] queryIndices
    • Constructor Detail

      • RankingSample

        public RankingSample(RankingDataset dataset,
                             int[] queryIndices,
                             int[] queryBoundaries,
                             int[] instances,
                             double[] weights,
                             double[] targets,
                             int[] indicesInParentSample,
                             int docCount,
                             int queryCount)
    • Method Detail

      • getFilteredSubSample

        public RankingSample getFilteredSubSample(java.util.List<java.lang.Integer> qids)
      • getOutOfSample

        public RankingSample getOutOfSample(java.util.List<java.lang.Integer> qids)
        Creates a sample from queries that are in this sample and their ids are not listed in the input list of qids.
      • getAugmentedSampleWithDocSampling

        public RankingSample getAugmentedSampleWithDocSampling(int times,
                                                               double rate,
                                                               java.util.Random rnd)
      • evaluateByQuery

        public double[] evaluateByQuery(double[] predictions,
                                        RankingEvaluationMetric evaluationMetric)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getZeroFilteredSample

        public RankingSample getZeroFilteredSample()
      • getRandomDocDistBiasedSubSample

        public Sample getRandomDocDistBiasedSubSample(double rate,
                                                      java.util.Random rnd)
        Returns a random subsample which is biased with respect to number of documents per query. It tries to include queries that have more diverse number of documents
      • printDocsPerQuery

        public void printDocsPerQuery()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.