NaN loss when training regression network

后端 未结 17 2309
渐次进展
渐次进展 2020-11-29 16:28

I have a data matrix in \"one-hot encoding\" (all ones and zeros) with 260,000 rows and 35 columns. I am using Keras to train a simple neural network to predict a continuou

17条回答
  •  Happy的楠姐
    2020-11-29 16:53

    I had the same problem, I was using Keras for a Multivariate regression problem. What I later realised was that some values in my dataset were nan and that led to a nan loss. I used the command:

    df=df.dropna()

    And it resolved my issue.

提交回复
热议问题