This commit is contained in:
Yevhenii Poliakov 2023-05-14 22:17:49 +02:00
parent c3b7f91d57
commit 96b97aca98

View File

@ -59,6 +59,9 @@ y_train = y_train.values
y_train = y_train.astype(float)
y_train = y_train[np.isfinite(y_train)]
non_numeric_values = [value for value in y_train if not np.issubdtype(type(value), np.number)]
print("Non-numeric values in y_train:", non_numeric_values)
# Create the neural network model
model = Sequential()
model.add(Dense(32, activation='relu', input_dim=X.shape[1]))