why the accuracy result and the loss result of an ANN model is inconsistent?
I trained a model based on an ANN and the accuracy is 94.65% almost every time while the loss result is 12.06%. Now my question is shouldn't the loss of the model be (100-94 = 6%) or near it? Why it is giving a result of 12% when the accuracy is 94%?
• ANN model specification:
- Trained and tested data= 96,465 (training data = 80%, testing data = 20%)
- 1 Input layer= 5 nodes, 2 Hidden layers= 24 nodes each, 1 Output layer= 5 nodes
- Activation function: a. Rectified linear (ReLu) function in hidden layers b. Softmax function in output layer
- Optimizer: Adam
- Loss function: Sparse categorical crossentropy
- Batch size: 100
- Epochs: 30
Topic loss loss-function accuracy machine-learning
Category Data Science