For somebody super beginner how can one remember what to pass into model.fit? I have to keep on looking up that we are supposed to pass X_train, y_train. But I guess I don't fully understand why we don't pass in something else such as: X_train, y_test.
Thank you! Josh
CodePudding user response:
X are your features and y are your associated labels. Your model may only see the test data in the evaluation step.
https://machinelearningmastery.com/train-test-split-for-evaluating-machine-learning-algorithms/
CodePudding user response:
Passing X_train and y_test will result in a data mismatch: once you have splitted your data in training and test set (here's why you do it and some ways to do that), you will have the output/label of your X_train in your y_train, and that goes the same for your test set.