Skip to content

Lab 7: LOOCV for loop to fit polynomials from degree 1 to 5 #3

Description

@guin0x

In the line with for i in range(1,6): you have model = lm.fit(X_current, y) so you're training your model using the X_test data as well. Shouldn't the model be trained only with the training data? And then we would call cross_val_score() using the model and the X values?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions