Hi everyone! I am getting a weird error with this code block, not sure how to fix this.
Please update your post with the stacktrace of the error you face.
Never mind, I was able to solve the issue by installing a different version of tensorflow, 2.7.0.
You’ve already imported to_categorical. So, there’s no need for tensorflow.to_categorical. It’s sufficient to call to_categorical.
Please update this post to reflect your latest issue.
from tensorflow.python.keras.engine.sequential import Sequential
give a try on this
else try to install tensorflow 2.7.0
using
pip install tensorflow==2.7.0
Using pip install tensorflow==2.7.0 fixed the issue, thank you!
Each of features and labels should be an array and not a tuple of arrays. You just need one of them per line.

