Normalizing the inputs and outputs

Is Normalizing needed for both inputs and outputs as well to get rid of inf and nan value in the cost function?

Thank you

Hi,

Normalising inputs, changing learning rate could help. Cost function gives you Nan or inf might be that you have something that drives the cost expression to 0 and the log(0) gives you inf or Nan.

Try these and let me know with some more information if it does not work.

Thanks!

Thank you @anup.padaki . It worked