I have used the Functional API to create a model with three different output layers to test different activation functions. The problem is that the output line for each epoch is too long. I only want to look at the accuracy and not the loss.
Epoch 1/5
1875/1875 - 4s - loss: 3.7070 - Sigmoid_loss: 1.1836 - Softmax_loss: 1.2291 - Softplus_loss: 1.2943 - Sigmoid_accuracy: 0.9021 - Softmax_accuracy: 0.9020 - Softplus_accuracy: 0.5787
I don't want the .fit()
function to print the loss for each layer, only the accuracy. I searched all of Google and Tensorflow Documentation but couldn't find how to do it.
If you want the complete code, comment on this post. I will send it immediately.
Here is the model's summary:
Model: "model"
__________________________________________________________________________________________________
Layer (type) Output Shape Param # Connected to
==================================================================================================
InputLayer (InputLayer) [(32, 784)] 0
__________________________________________________________________________________________________
FirstHidden (Dense) (32, 512) 401920 InputLayer[0][0]
__________________________________________________________________________________________________
SecondHidden (Dense) (32, 256) 131328 FirstHidden[0][0]
__________________________________________________________________________________________________
Sigmoid (Dense) (32, 10) 2570 SecondHidden[0][0]
__________________________________________________________________________________________________
Softmax (Dense) (32, 10) 2570 SecondHidden[0][0]
__________________________________________________________________________________________________
Softplus (Dense) (32, 10) 2570 SecondHidden[0][0]
==================================================================================================
Total params: 540,958
Trainable params: 540,958
Non-trainable params: 0
__________________________________________________________________________________________________
None
Thank You and have a nice day ahead.