title: Get feature importance for the model trained using RandomizedSearchCV and Multinomial Naiye Bayes
body: <p>After fitting the model, can not get the feature importance. I have done following steps:</p>
  <p><code>model_bow = RandomizedSearchCV(MultinomialNB(class_prior=[0.5,0.5]),param_distributions={'alpha':alpha},scoring='roc_auc',n_iter=10,return_train_score=True,)</code></p>
  <p><code>model_bow.fit(X_train_en_bow,y_train)</code></p>
  <p><code>model_bow.best_params_</code> gives me <code>best value is {'alpha': 0.5}</code></p>
  <p>now if i want the feature importance using <code>model_bow.estimator.feature_log_prob_</code>, it gives an error as below.</p>
  <pre><code>---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-40-cc27acc11117&gt; in &lt;module&gt;
  ----&gt; 1 model_bow.estimator.feature_log_prob_()
  
  AttributeError: 'MultinomialNB' object has no attribute 'feature_log_prob_'
  </code></pre>
  <p>when i print model_bow it shows</p>
  <pre><code>                   param_distributions={'alpha': [1e-05, 0.0001, 0.001, 0.01,
                                                    0.1, 0.5, 1, 5, 10, 50,
                                                    100]},
                     return_train_score=True, scoring='roc_auc')
  </code></pre>
  <p>Please advice where i am missing !</p>