2014-05-10 19:58 GMT+02:00 Xiandi Zhang <zxd_ci...@hotmail.com>:
> I can run the same successfully in sklearn 0.13. But got this error when I
> upgraded to 0.14.  This is my first post in this list. If there is anything
> I need to specifically provide, in case of reporting an issue, please let me
> know.
>
>   File "/usr/local/lib/python2.7/site-packages/sklearn/naive_bayes.py", line
> 99, in predict_proba
>     return np.exp(self.predict_log_proba(X))
>   File "/usr/local/lib/python2.7/site-packages/sklearn/naive_bayes.py", line
> 80, in predict_log_proba
>     jll = self._joint_log_likelihood(X)
>   File "/usr/local/lib/python2.7/site-packages/sklearn/naive_bayes.py", line
> 179, in _joint_log_likelihood
>     jointi = np.log(self.class_prior_[i])
> TypeError: 'NDArrayWrapper' object does not support indexing

What is the class_prior_ attribute on this NB object?

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to