Interface IDyadFeatureTransform

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default 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>> getPreComputedFeatureTransforms​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset dataset)
      Precomputed the feature transforms for the dataset, this can speed up the runtime as the feature transform will be reduced to O(1) at the cost of O(n).
      int getTransformedVectorLength​(int alternativeLength, int instanceLength)
      Get the length of the vector returned by the transform method.
      org.api4.java.common.math.IVector transform​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyad dyad)
      Transform the instance of the given dyad (models the skill).
    • Method Detail

      • transform

        org.api4.java.common.math.IVector transform​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyad dyad)
        Transform the instance of the given dyad (models the skill).
        Parameters:
        dyad - the dyad to transform
        Returns:
        the transformed instance values for the dyad
      • getTransformedVectorLength

        int getTransformedVectorLength​(int alternativeLength,
                                       int instanceLength)
        Get the length of the vector returned by the transform method.
        Parameters:
        alternativeLength - the length of the alternative vector of the transformed dyad
        instanceLength - the length of the instance vector of the transformed dyad
        Returns:
        the length of the transformed feature vector
      • getPreComputedFeatureTransforms

        default 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>> getPreComputedFeatureTransforms​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingDataset dataset)
        Precomputed the feature transforms for the dataset, this can speed up the runtime as the feature transform will be reduced to O(1) at the cost of O(n).
        Parameters:
        dataset -
        Returns:
        the feature transform