This will cause an error because the model wouldn’t know what to learn from during training. You are right, it means that I was considering data as our input data (x) and target (y) at the same time.
Both input data (x) and target data (y) are essential for the training phase. So, it’s important to split your data into x (features) and y (labels) before training your model. Thanks A A for the feedback next time I will pay attention to be more clear with that.