I need to create a neural network (with keras) that has as last layer a single neuron that contains the index of the neuron with the maximum value prediction in the precedent softmax layer.
For example my softmax layer gives as result this:
[0.1, 0.1, 0.7, 0.0, 0.05, 0.05]
And I want that the single neuron layer (after the softmax layer) gives as result 2
(considering a 0 based valutation).
How can I do that?