Class ARandomlyInitializingDyadRanker

    • Constructor Detail

      • ARandomlyInitializingDyadRanker

        public ARandomlyInitializingDyadRanker​(PLNetDyadRanker ranker,
                                               IDyadRankingPoolProvider poolProvider,
                                               int seed,
                                               int numberRandomQueriesAtStart,
                                               int minibatchSize)
    • Method Detail

      • activelyTrain

        public void activelyTrain​(int numberOfQueries)
                           throws org.api4.java.ai.ml.core.exception.TrainingException,
                                  java.lang.InterruptedException
        Description copied from class: ActiveDyadRanker
        Actively trains the ranker for a certain number of queries.
        Overrides:
        activelyTrain in class ActiveDyadRanker
        Parameters:
        numberOfQueries - Number of queries the ranker conducts
        Throws:
        org.api4.java.ai.ml.core.exception.TrainingException
        java.lang.InterruptedException
      • getNumberRandomQueriesAtStart

        public int getNumberRandomQueriesAtStart()
      • getIteration

        public int getIteration()
      • getDyadStats

        public java.util.Map<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad,​org.apache.commons.math3.stat.descriptive.SummaryStatistics> getDyadStats()
      • getInstanceFeatures

        public java.util.List<org.api4.java.common.math.IVector> getInstanceFeatures()
      • getRandom

        public java.util.Random getRandom()
      • getMinibatchSize

        public int getMinibatchSize()
      • activelyTrainWithOneInstance

        public abstract void activelyTrainWithOneInstance()
                                                   throws org.api4.java.ai.ml.core.exception.TrainingException,
                                                          java.lang.InterruptedException
        Specified by:
        activelyTrainWithOneInstance in class ActiveDyadRanker
        Throws:
        org.api4.java.ai.ml.core.exception.TrainingException
        java.lang.InterruptedException
      • updateRanker

        public void updateRanker​(DyadRankingDataset minibatch)
                          throws org.api4.java.ai.ml.core.exception.TrainingException,
                                 java.lang.InterruptedException
        Throws:
        org.api4.java.ai.ml.core.exception.TrainingException
        java.lang.InterruptedException