I am attempting to run this example from sklearn to better understand their TfidfTransformer
from sklearn.feature_extraction.text
. However, I am returned with
Traceback (most recent call last):
File "grid_search_text_feature_extraction.py", line 16, in <module>
from sklearn.model_selection import GridSearchCV
ImportError: No module named model_selection
After initial searching I see that model_selection is available only beginning with version 0.18. I am currently running version 0.16.1 and am unable to update the package myself due to network config that I am working in. From iPython (python 2) - ImportError: No module named model_selection I see that the predecessor to sklearn.model_selection
was sklearn.cross_validation
, however there is no GridSearchCV available.
What quick alternative is there to utilize GridSearchCV or replace it completely to run this example?