All Questions
Tagged with cross-validation scikit-learn
2 questions
0
votes
2
answers
191
views
cross_val_score of sklearn and LinearRegression scoring method
The function cross_val_score uses the estimator’s default scorer (if available) and LinearRgression (the estimator I use) uses The coefficient of determination (which is defined as $R^2 = 1 - \frac{u}...
1
vote
0
answers
69
views
How can I split the data into training and validation sets such that entries with a certain value are kept together?
I have the following kind of data frame. These are just example:
A 1 Normal
A 2 Normal
A 3 Stress
B 1 Normal
B 2 Stress
B 3 Stress
C 1 Normal
C 2 Normal
C 3 Normal
...