aymericdamien / TensorFlow-Examples

TensorFlow Tutorial and Examples for Beginners (support TF v1 & v2)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when I specify asix=1 in cross_entropy of neural_network_raw it does not work

grvmeratwal opened this issue · comments

As you have used axis=1 in cross_entropy of logistic_regression.ipynb

If I do same thing in neural_network_raw , it does not work
it gives accuracy of 12%

return tf.reduce_mean(-tf.reduce_sum(y_true * tf.math.log(y_pred),axis=1))

return tf.reduce_mean(-tf.reduce_sum(y_true * tf.math.log(y_pred),axis=1))
does not works in neural_network_raw

when I make learning_rate=0.05
it works with axis=1