Class OneHot

    • Constructor Summary

      Constructors 
      Constructor Description
      OneHot​(int numClass)
      Creates a OneHot Transform that converts the sparse label to one-hot label.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      NDArray transform​(NDArray array)
      Applies the Transform to the given NDArray.
      • Methods inherited from class java.lang.Object

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

      • OneHot

        public OneHot​(int numClass)
        Creates a OneHot Transform that converts the sparse label to one-hot label.
        Parameters:
        numClass - number of classes