Package org.deeplearning4j.nn.adapters
Class ArgmaxAdapter
- java.lang.Object
-
- org.deeplearning4j.nn.adapters.ArgmaxAdapter
-
- All Implemented Interfaces:
Serializable
,OutputAdapter<int[]>
public class ArgmaxAdapter extends Object implements OutputAdapter<int[]>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArgmaxAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceOutputAdapter<int[]>
- Parameters:
outputs
-- Returns:
-
-