Class DyadRankingFeatureTransformNegativeLogLikelihood

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double apply​(org.api4.java.common.math.IVector w)
      Algorithm (18) of [1].
      void initialize​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset dataset, java.util.Map<org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingInstance,​java.util.Map<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad,​org.api4.java.common.math.IVector>> featureTransforms)
      Initializes the function with the given dataset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DyadRankingFeatureTransformNegativeLogLikelihood

        public DyadRankingFeatureTransformNegativeLogLikelihood()
    • Method Detail

      • initialize

        public void initialize​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset dataset,
                               java.util.Map<org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingInstance,​java.util.Map<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad,​org.api4.java.common.math.IVector>> featureTransforms)
        Initializes the function with the given dataset.
        Specified by:
        initialize in interface IDyadRankingFeatureTransformPLGradientDescendableFunction
        Parameters:
        dataset - the dataset to use
        featureTransforms - the feature precomputed feature transforms
      • apply

        public double apply​(org.api4.java.common.math.IVector w)
        Algorithm (18) of [1]. We adhere their notations, but, unify the sums.
        Specified by:
        apply in interface ai.libs.jaicore.math.gradientdescent.IGradientDescendableFunction