Class BiliniearFeatureTransform

  • All Implemented Interfaces:
    IDyadFeatureTransform

    public class BiliniearFeatureTransform
    extends java.lang.Object
    implements IDyadFeatureTransform
    Implementation of the feature transformation method using the Kroenecker Product.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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).
      • Methods inherited from class java.lang.Object

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

      • BiliniearFeatureTransform

        public BiliniearFeatureTransform()
    • Method Detail

      • transform

        public org.api4.java.common.math.IVector transform​(org.api4.java.ai.ml.ranking.dyad.dataset.IDyad dyad)
        Description copied from interface: IDyadFeatureTransform
        Transform the instance of the given dyad (models the skill).
        Specified by:
        transform in interface IDyadFeatureTransform
        Parameters:
        dyad - the dyad to transform
        Returns:
        the transformed instance values for the dyad
      • getTransformedVectorLength

        public int getTransformedVectorLength​(int alternativeLength,
                                              int instanceLength)
        Description copied from interface: IDyadFeatureTransform
        Get the length of the vector returned by the transform method.
        Specified by:
        getTransformedVectorLength in interface IDyadFeatureTransform
        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