I am trying to train a model for my binary classification problem.
My data has 91 columns and 50 thousand rows. One of the columns is my binary target variable and all the others are also numeric. Here is how I tried to train ;
model = Sequential()
model.add(Dense(20, input_dim=90, kernel_initializer='normal', activation='relu'))
model.add(Dense(20, kernel_initializer='normal', activation='relu'))
model.add(Dense(20, kernel_initializer='normal', activation='relu'))
model.add(Dense(1, kernel_initializer='normal', activation='sigmoid'))
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
model.fit(x_train_scaled, y_train, epochs=20)
After a fast training, I tried to predict with my test set and saw that all predictions are NaN
+ model.predict(x_test_scaled)
- array([[nan],
[nan],
[nan],
...,
[nan],
[nan],
[nan]], dtype=float32)
By the way, I also didn't see loss score during training. There was also written NaN