Class DyadRankingFeatureTransformNegativeLogLikelihoodDerivative

  • All Implemented Interfaces:
    ai.libs.jaicore.math.gradientdescent.IGradientFunction, IDyadRankingFeatureTransformPLGradientFunction

    public class DyadRankingFeatureTransformNegativeLogLikelihoodDerivative
    extends java.lang.Object
    implements IDyadRankingFeatureTransformPLGradientFunction
    Represents the derivate of the negative log likelihood function in the context of feature transformation Placket-Luce dyad ranking [1]. This implementation can be used for the partial derivatives of the linear vector w w.r.t. the negative log-likelihood that should be minimized. [1] Schäfer, D. & Hüllermeier, Dyad ranking using Plackett–Luce models based on joint feature representations, https://link.springer.com/article/10.1007%2Fs10994-017-5694-9
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.api4.java.common.math.IVector apply​(org.api4.java.common.math.IVector vector)  
      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)
      Initialize the function with the given data set and feature transformation method.
      • Methods inherited from class java.lang.Object

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

      • DyadRankingFeatureTransformNegativeLogLikelihoodDerivative

        public DyadRankingFeatureTransformNegativeLogLikelihoodDerivative()
    • 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)
        Description copied from interface: IDyadRankingFeatureTransformPLGradientFunction
        Initialize the function with the given data set and feature transformation method.
        Specified by:
        initialize in interface IDyadRankingFeatureTransformPLGradientFunction
        Parameters:
        dataset - the dataset to use
        featureTransforms - the pre computed feature transformations
      • apply

        public org.api4.java.common.math.IVector apply​(org.api4.java.common.math.IVector vector)
        Specified by:
        apply in interface ai.libs.jaicore.math.gradientdescent.IGradientFunction