Typeerror: 'shufflesplit' Object Is Not Iterable
I am using ShuffleSplit to shuffle data, but I found there is an error TypeError Traceback (most recent call last)
Solution 1:
While importing GridSearchCV from grid_search like this:
from sklearn.grid_searchimportGridSearchCV
You must get a warning like the following:
This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
This is self explanatory and conforms to what you are experiencing.
Solution:-
Dont use the deprecated grid_search
package. Use the new model_selection
.
Post a Comment for "Typeerror: 'shufflesplit' Object Is Not Iterable"