model.fit(x_train, y_train, epochs=5, batch_size=32, validation_split=0.2)
Si bien este ejemplo es didáctico, en la práctica casi siempre usarás Keras. Pero conocer TensorFlow subyacente te hará un profesional más completo. aprende machine learning con scikitlearn keras y tensorflow
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) y_test = train_test_split(X