RNA2
RNA2
X = total_data.drop("8", axis = 1)
y = total_data["8"]
X_train.head()
set_random_seed(42)
model = Sequential()
model.add(Dense(12, input_shape = (8,), activation = "relu"))
model.add(Dense(8, activation = "relu"))
model.add(Dense(1, activation = "sigmoid"))
print(f"Accuracy: {accuracy}")
y_pred = model.predict(X_test)
y_pred[:15]
#redondeo de la salida
y_pred_round = [round(x[0]) for x in y_pred]
y_pred_round[:15]