[Solved] Error: __init__() got an unexpected keyword argument ‘n_splits’

You are mixing up two different modules. Before 0.18, cross_validation was used for ShuffleSplit. In that, n_splits was not present. n was used to define the number of splits But since you have updated to 0.18 now, cross_validation and grid_search has been deprecated in favor of model_selection. This is mentioned in docs here, and these … Read more