Class TopKOfPredicted

  • All Implemented Interfaces:
    org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicHomogeneousPredictionPerformanceMeasure<org.api4.java.ai.ml.ranking.IRanking<?>>, org.api4.java.ai.ml.core.evaluation.supervised.loss.IDeterministicPredictionPerformanceMeasure<org.api4.java.ai.ml.ranking.IRanking<?>,​org.api4.java.ai.ml.ranking.IRanking<?>>, org.api4.java.ai.ml.ranking.loss.IRankingPredictionPerformanceMeasure

    public class TopKOfPredicted
    extends ARankingPredictionPerformanceMeasure
    implements org.api4.java.ai.ml.ranking.loss.IRankingPredictionPerformanceMeasure
    Calculates if the top-k dyads of the predicted ranking match the top-k dyads of the actual ranking. This ignores the rankings.
    • Constructor Detail

      • TopKOfPredicted

        public TopKOfPredicted​(int k)
        Specifies the amount of top rankings to consider.
        Parameters:
        k -
    • Method Detail