After splitting a dataset in python using scikit learn's traintestsplit, how should I…
Rate quality
Private research annotation
Sign in to add a private research label or note.
Jump to turn (28)
- 1After splitting a dataset in python using scikit learn's traintestsplit, how sho
- 2scikit learn's linear model score function takes in a test dataset and scores ag
- 3So if a dataset has no variation and is actually completely equal to its mean, t
- 4So is a score more informative about the quality of the model the higher the var
- 5How should I interpret my score that I calculate? I get that 1 is a perfect pred
- 6How can I write a variable to LaTeX in a Jupyter Notebook?
- 7Is my model
- 8It did get cut off. Is my model's .coef an array of coefficients for the model?
- 9With LaTeX I mean
- 10Does this analysis of cross-validation performed on my dataset seem to show an a
- 11To be clear, these scores are obtained from "scores = crossvalscore(slimemodel,
- 12In my previous prompt, I said "training subsets" where I meant "testing subsets"
- 13Is it correct for me to be performing this analysis on Xtrain and ytrain, which
- 14So for a revised analysis of the cross-validation, is this paragraph sufficient?
- 15Technically, isn't each score associated with a similar, but separate model? Or
- 16I'm having trouble understanding the coefs of a model trained on a dataset augme
- 17If coef[0] is the intercept, why is it not equal to intercept?
- 18I think I understand now. In my use case here, coef[0] will always be 0 because
- 19So in writing my h(x), do I put my coef[0] behind x0 (rather than x1 or x2)?
- 20But I need to include the intercept here, right?
- 21But intercept and coef[0] aren't equivalent? I don't understand...
- 22So should I write "h(x) = intercept + coef[0]x0 + coef[1]x1 + coef[2]x2 + coef[3
- 23So why does coef[0] not appear in h(x)? What does coef[0] represent then? It can
- 24So coef[0] represents the intercept for each row of the data after it was transf
- 25Does the PolynomialFeatures(2) transform the dataset from this: x -> y into this
- 26And so after the model fits this data, the first feature (the intercepts of thes
- 27If my polynomial regression has a perfect score of 1, is this analysis accurate?
- 28How about this revised paragraph: |The model scores a perfect 1. A score of 1 is
- User
After splitting a dataset in python using scikit learn's train_test_split, how should I use the training set to train a linear regression model?
- Assistant