Class DyadRankingDataset

    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DyadRankingDataset createEmpty()
      Creates an empty copy of the same structure (and same type).
      void deserialize​(java.io.InputStream in)  
      boolean equals​(java.lang.Object o)  
      static DyadRankingDataset fromOrderedDyadList​(java.util.List<Dyad> orderedDyad)  
      int getFrequency​(IDyadRankingInstance instance)  
      int hashCode()  
      void serialize​(java.io.OutputStream out)  
      java.util.List<org.nd4j.linalg.api.ndarray.INDArray> toND4j()
      Converts this data set to a list of ND4j INDArrays.
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
    • Constructor Detail

      • DyadRankingDataset

        public DyadRankingDataset()
        Creates an empty dyad ranking dataset.
      • DyadRankingDataset

        public DyadRankingDataset​(java.util.Collection<IDyadRankingInstance> c)
        Creates a dyad ranking dataset containing all elements in the given Collection in the order specified by the collections iterator.
        Parameters:
        c - Collection containing IInstance objects
      • DyadRankingDataset

        public DyadRankingDataset​(int initialCapacity)
        Creates an empty dyad ranking dataset with the given initial capacity.
        Parameters:
        initialCapacity - initial capacity of the dyad ranking dataset
      • DyadRankingDataset

        public DyadRankingDataset​(java.util.List<IDyadRankingInstance> dyadRankingInstances)
    • Method Detail

      • serialize

        public void serialize​(java.io.OutputStream out)
      • deserialize

        public void deserialize​(java.io.InputStream in)
      • toND4j

        public java.util.List<org.nd4j.linalg.api.ndarray.INDArray> toND4j()
        Converts this data set to a list of ND4j INDArrays. Each dyad ranking is represented by a 2D-matrix where a row is a dyad.
        Returns:
      • fromOrderedDyadList

        public static DyadRankingDataset fromOrderedDyadList​(java.util.List<Dyad> orderedDyad)