upd51
This commit is contained in:
parent
c3b7f91d57
commit
96b97aca98
@ -59,6 +59,9 @@ y_train = y_train.values
|
|||||||
y_train = y_train.astype(float)
|
y_train = y_train.astype(float)
|
||||||
y_train = y_train[np.isfinite(y_train)]
|
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
|
# Create the neural network model
|
||||||
model = Sequential()
|
model = Sequential()
|
||||||
model.add(Dense(32, activation='relu', input_dim=X.shape[1]))
|
model.add(Dense(32, activation='relu', input_dim=X.shape[1]))
|
||||||
|
Loading…
Reference in New Issue
Block a user