Class BiliniearFeatureTransform
- java.lang.Object
-
- ai.libs.jaicore.ml.ranking.dyad.learner.algorithm.featuretransform.BiliniearFeatureTransform
-
- All Implemented Interfaces:
IDyadFeatureTransform
public class BiliniearFeatureTransform extends java.lang.Object implements IDyadFeatureTransform
Implementation of the feature transformation method using the Kroenecker Product.
-
-
Constructor Summary
Constructors Constructor Description BiliniearFeatureTransform()
-
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
-
Methods inherited from interface ai.libs.jaicore.ml.ranking.dyad.learner.algorithm.featuretransform.IDyadFeatureTransform
getPreComputedFeatureTransforms
-
-
-
-
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 interfaceIDyadFeatureTransform
- 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 interfaceIDyadFeatureTransform
- Parameters:
alternativeLength
- the length of the alternative vector of the transformed dyadinstanceLength
- the length of the instance vector of the transformed dyad- Returns:
- the length of the transformed feature vector
-
-