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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!