public interface IDyadRankingInstance extends ILabeledInstance<IDyadRankingInstance>, java.lang.Iterable<Dyad>
DyadRankingDataset. A dyad ranking
instance contains an ordering of dyads.| Modifier and Type | Method and Description |
|---|---|
Dyad |
getDyadAtPosition(int position)
Get the dyad at the specified position in the ordering contained in this
instance.
|
int |
length()
Get the number of dyads in the ranking.
|
org.nd4j.linalg.api.ndarray.INDArray |
toMatrix()
Converts a dyad ranking to a
INDArray matrix where each row
corresponds to a dyad. |
getTargetValueDyad getDyadAtPosition(int position)
position - The position in the ordering for which to get the dyadint length()
org.nd4j.linalg.api.ndarray.INDArray toMatrix()
INDArray matrix where each row
corresponds to a dyad.INDArray matrix form.