Tensorflow_introduction - compute_cost(logits, labels)

cost = tf.(tf.(lab***, log***, from_logits=T***))

The cost results are not matching the expected output. I have referred to previous topics and followed all that was suggested by Mentors. Is there a known issue in the Exercise itself, please assist?

2 Likes

Are you sure you transposed the labels and logits?

2 Likes

hi Paul, I had transposed them yesterday based on your suggestion in a similar issue to a learner but didn’t get the results. Today, I tried again and re-ran the entire notebook. It gave perfect results. Thanks much. Have a Happy New Year. Hats off to your commitment :slight_smile: