Interface INDArrayDyadRankingInstance

  • All Superinterfaces:
    org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingInstance, org.api4.java.ai.ml.core.dataset.IInstance, org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance, org.api4.java.ai.ml.ranking.dataset.IRankingInstance<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad>, java.lang.Iterable<org.api4.java.ai.ml.ranking.dyad.dataset.IDyad>
    All Known Implementing Classes:
    ADyadRankingInstance, DenseDyadRankingInstance, SparseDyadRankingInstance

    public interface INDArrayDyadRankingInstance
    extends org.api4.java.ai.ml.ranking.dyad.dataset.IDyadRankingInstance
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.nd4j.linalg.api.ndarray.INDArray toMatrix()
      Converts a dyad ranking to a INDArray matrix where each row corresponds to a dyad.
      • Methods inherited from interface org.api4.java.ai.ml.core.dataset.IInstance

        getAttributes, getAttributeValue, getNumAttributes, getPoint, getPointValue, isAttributeValuePresent, removeColumn
      • Methods inherited from interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance

        isLabelPresent, setAttributeValue, setLabel
      • Methods inherited from interface org.api4.java.ai.ml.ranking.dataset.IRankingInstance

        getLabel, getNumberOfRankedElements
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • toMatrix

        org.nd4j.linalg.api.ndarray.INDArray toMatrix()
        Converts a dyad ranking to a INDArray matrix where each row corresponds to a dyad.
        Returns:
        The dyad ranking in INDArray matrix form.