Calling fit on train data
In Practical example 4. You do reg.predict(train_x) right after you do reg.fit(train_x, trainY). Is this correct? Should the predication not be on test_x? Won't this cause overfitting?
1 answers ( 0 marked as helpful)
I agree with Rajeev. Are not the predictions supossed to be on the test set(?) I am confused with this.