---
title: "Comment by A A on \"Build, Compile, and Fit Models in TensorFlow \nPart II\" | Hashnode"
description: "Good example but this line will error: model.fit(data, epochs=10) It needs to be split into x and y: model.fit(x_train, y_train, epochs=10)"
url: "https://hashnode.com/posts/build-compile-and-fit-models-in-tensorflow-part-ii/64dad1c9ff6c76c54a36b6e4/comment/64e0e525fe582aa061c407c5"
---

[Discussion](https://hashnode.com/posts/build-compile-and-fit-models-in-tensorflow-part-ii/64dad1c9ff6c76c54a36b6e4)

Comment [Build, Compile, and Fit Models in TensorFlow Part II](https://hashnode.com/posts/build-compile-and-fit-models-in-tensorflow-part-ii/64dad1c9ff6c76c54a36b6e4)

[A A](https://hashnode.com/@prosson)

[Aug 19, 2023](https://hashnode.com/posts/build-compile-and-fit-models-in-tensorflow-part-ii/64dad1c9ff6c76c54a36b6e4/comment/64e0e525fe582aa061c407c5)

Good example but this line will error:

model.fit(data, epochs=10)

It needs to be split into x and y:

model.fit(x\_train, y\_train, epochs=10)
