From 96b97aca98dbe967f42c5a182e1bfd34c5b47492 Mon Sep 17 00:00:00 2001 From: Yevhenii Poliakov Date: Sun, 14 May 2023 22:17:49 +0200 Subject: [PATCH] upd51 --- script5_1.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script5_1.py b/script5_1.py index a8630d8..fefd653 100644 --- a/script5_1.py +++ b/script5_1.py @@ -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]))