Class ArgmaxAdapter

    • Constructor Detail

      • ArgmaxAdapter

        public ArgmaxAdapter()
    • Method Detail

      • apply

        public int[] apply​(INDArray... outputs)
        This method does conversion from INDArrays to int[], where each element will represents position of the highest element in output INDArray I.e. Array of {0.25, 0.1, 0.5, 0.15} will return int array with length of 1, and value {2}
        Specified by:
        apply in interface OutputAdapter<int[]>
        Parameters:
        outputs -
        Returns: