Skip to main content
Igor9094's user avatar
Igor9094's user avatar
Igor9094's user avatar
Igor9094
  • Member for 2 years, 3 months
  • Last seen more than 2 years ago
comment
Train-test split within modeling function
I also just realised that I was misunderstood something. You do not need to split the dataset into training and test sets before using the cross_val_score function. Just pass in the features and the target variable and the function automatically creates the sets at each fold.
comment
Train-test split within modeling function
I believed that the cross-validation method was intended so that a validation set was not necessary, especially if you are working with a small dataset such as the Boston housing dataset that I'm working with.
awarded
comment
comment
Loading…
awarded
asked
Loading…