ValueError: Input contains NaN, infinity or a value too large

hello @everyone
When I am trying to fit the model in Feed Forward Neural Network(Lecture name: “DNN using python: Classification with sigmoid neuron” on Guvi) it raises an error which says :

ValueError: Input contains NaN, infinity or a value too large for dtype('float64').

Hi @Anand_Deep, Please do share a link to your notebook with “Anyone can access” permission.

notebook link
please resolve

Hi @Anand_Deep,
Please normalize the data before feeding it.

now when i am plotting the curve it’s giving me straight line.
Notebook Link

Inside sigmoid function change

    return 1.0/1.0 + (np.exp(-x))

to

    return 1.0/(1.0 + np.exp(-x))