title: SKLearn: TypeError: __init__() got an unexpected keyword argument n_splits
body: <p>I'm trying to use SKLearn (version 0.18.1) as follows:</p>
  
  <pre><code>from sklearn.model_selection import KFold
  kfold = KFold(n_splits=5, random_state=100)
  </code></pre>
  
  <p>But I get this strange error:</p>
  
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-17-b8dd4f5596be&gt; in &lt;module&gt;()
  ----&gt; 1 kfold = KFold(k=5, random_state=100)
        2 results = cross_val_score(estimator, X, Y, cv=kfold)
        3 print("Results: %.2f (%.2f) MSE" % (results.mean(), results.std()))
  
  TypeError: __init__() got an unexpected keyword argument 'k'
  </code></pre>
  
  <p>I've consulted the docs here:</p>
  
  <p><a href="http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.KFold.html" rel="noreferrer">http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.KFold.html</a></p>
  
  <p>and <code>n_splits</code> does look like a parameter I should be able to pass...</p>
  
  <p>Any idea what's going on here / how to fix?</p>
  
  <p>Thanks!</p>