Question: On random seeds: Many functions in scikit-learn, including models as well as utilities, use randomization. For ease of grading, we will fix a random seed
On random seeds: Many functions in scikit-learn, including models as well as utilities, use randomization. For ease of grading, we will fix a random seed for questions 1, 2, and 3 so as to make behavior deterministic. We will use a random seed of 10. This can generally be done by passing in random state=10 to the function; please consult documentation if unsure. For crossvalidation methods, though, you will likely need to set the cv argument instead. You can do this by setting cv=KFold(n splits=,random state=10,shuffle=True))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
