Invalid parameter estimator for estimator MLPClassifier
<p>When I tried to use GridSearchCV for MLPClassifier, I got this message: </p>

<blockquote>
  <p>ValueError: Invalid parameter estimator for estimator <br>
  MLPClassifier(activation='relu', alpha=0.0001, batch_size='auto', beta_1=0.9,
  beta_2=0.999, early_stopping=False, epsilon=1e-08,<br>
  hidden_layer_sizes=(100,), learning_rate='constant',<br>
  learning_rate_init=0.001, max_iter=200, momentum=0.9,<br>
  nesterovs_momentum=True, power_t=0.5, random_state=1, shuffle=True,<br>
  solver='lbfgs', tol=0.0001, validation_fraction=0.1, verbose=False,<br>
  warm_start=False). Check the list of available parameters with estimator.get_params().keys().</p>
</blockquote>

<pre><code>from sklearn.neural_network import *
mlp = MLPClassifier(solver='lbfgs',  hidden_layer_sizes=(100, ), random_state=1)

paramgrid = {'estimator__alpha':logspace(-3,2,20),}
mlpcv = grid_search.GridSearchCV(mlp, paramgrid, cv = 5)
mlpcv.fit(trainXtf, trainY)
print mlpcv.best_params_
</code></pre>

<p>Which parameter has the mistakes?</p>

<p>You are doing a grid search on <code>paramgrid</code> which contains the parameter <code>estimator__alpha</code>.</p>

<p>However <strong>MLPClassifier</strong> does not have this parameter. You should change your <code>paramgrid</code>.</p>

python