Maybe a very dumb question but I can't find an example how to use categorical_hinge in Keras. I do classification and my target is shape(,1)
with values [-1,0,1] so I have 3 categories. Using the functional API I have set up my output layer like this:
output = Dense(1, name='output', activation='tanh', kernel_initializer='lecun_normal')(output1)
Then I apply:
model.compile(optimizer=adam, loss={'output': 'categorical_hinge'}, metrics=['accuracy'])
The result is that the model is converging but accuracy goes towards to 0. What do I do wrong?