about the categorical_crossentropy in line 51
linghelenchen opened this issue · 2 comments
linghelenchen commented
Dear author,
the code 7_cat_vs_dog_bottleneck.py
I encountered an error when running your code. This issue is related to the line 51. However, after changing categorical_crossentropy to binary_crossentropy the problem was solved.
Could you check this problem?
Thanks very much!
Best,
Helen
DusanBaek commented
Even if chaning categorical_crossentropy to binary_crossentropy, its val_acc output always are 0.5000 in all epoch.
linaashaji commented
it seems that if you want to change the categorical_crossentropy to binary_crossentropy, you have also to change the softamx activation function to a sigmoid activation function