If nobody is working on it, I can fix that one now by introducing a
new function divide in sklearn,utils.fixes.

2013/5/4  <ad...@shiningpanda.com>:
> See 
> <https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/1791/changes>
>
> Changes:
>
> [amueller] FIX WARN about **params being not used in GridSearchCV.fit. Closes 
> #1815.
>
> ------------------------------------------
> [...truncated 469 lines...]
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 502, in model_evaluation.rst
> Failed example:
>     metrics.precision_recall_fscore_support(y_true, y_pred, average='macro')  
> # doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[58]>", line 1, in <module>
>         metrics.precision_recall_fscore_support(y_true, y_pred, 
> average='macro')  # doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 510, in model_evaluation.rst
> Failed example:
>     metrics.precision_score(y_true, y_pred, average='micro')  # doctest: 
> +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[62]>", line 1, in <module>
>         metrics.precision_score(y_true, y_pred, average='micro')  # doctest: 
> +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1420, in precision_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 512, in model_evaluation.rst
> Failed example:
>     metrics.recall_score(y_true, y_pred, average='micro')  # doctest: 
> +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[63]>", line 1, in <module>
>         metrics.recall_score(y_true, y_pred, average='micro')  # doctest: 
> +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1497, in recall_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 514, in model_evaluation.rst
> Failed example:
>     metrics.f1_score(y_true, y_pred, average='micro')  # doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[64]>", line 1, in <module>
>         metrics.f1_score(y_true, y_pred, average='micro')  # doctest: 
> +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1044, in f1_score
>         pos_label=pos_label, average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1143, in fbeta_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 516, in model_evaluation.rst
> Failed example:
>     metrics.fbeta_score(y_true, y_pred, average='micro', beta=0.5)  # 
> doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[65]>", line 1, in <module>
>         metrics.fbeta_score(y_true, y_pred, average='micro', beta=0.5)  # 
> doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1143, in fbeta_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 518, in model_evaluation.rst
> Failed example:
>     metrics.precision_recall_fscore_support(y_true, y_pred, average='micro')  
> # doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[66]>", line 1, in <module>
>         metrics.precision_recall_fscore_support(y_true, y_pred, 
> average='micro')  # doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 526, in model_evaluation.rst
> Failed example:
>     metrics.precision_score(y_true, y_pred, average='weighted')  # doctest: 
> +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[70]>", line 1, in <module>
>         metrics.precision_score(y_true, y_pred, average='weighted')  # 
> doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1420, in precision_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 528, in model_evaluation.rst
> Failed example:
>     metrics.recall_score(y_true, y_pred, average='weighted')  # doctest: 
> +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[71]>", line 1, in <module>
>         metrics.recall_score(y_true, y_pred, average='weighted')  # doctest: 
> +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1497, in recall_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 530, in model_evaluation.rst
> Failed example:
>     metrics.fbeta_score(y_true, y_pred, average='weighted', beta=0.5)  # 
> doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[72]>", line 1, in <module>
>         metrics.fbeta_score(y_true, y_pred, average='weighted', beta=0.5)  # 
> doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1143, in fbeta_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 532, in model_evaluation.rst
> Failed example:
>     metrics.f1_score(y_true, y_pred, average='weighted')  # doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[73]>", line 1, in <module>
>         metrics.f1_score(y_true, y_pred, average='weighted')  # doctest: 
> +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1044, in f1_score
>         pos_label=pos_label, average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1143, in fbeta_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 534, in model_evaluation.rst
> Failed example:
>     metrics.precision_recall_fscore_support(y_true, y_pred, 
> average='weighted')  # doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[74]>", line 1, in <module>
>         metrics.precision_recall_fscore_support(y_true, y_pred, 
> average='weighted')  # doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 542, in model_evaluation.rst
> Failed example:
>     metrics.precision_score(y_true, y_pred, average=None)  # doctest: 
> +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[78]>", line 1, in <module>
>         metrics.precision_score(y_true, y_pred, average=None)  # doctest: 
> +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1420, in precision_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 544, in model_evaluation.rst
> Failed example:
>     metrics.recall_score(y_true, y_pred, average=None)
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[79]>", line 1, in <module>
>         metrics.recall_score(y_true, y_pred, average=None)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1497, in recall_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 546, in model_evaluation.rst
> Failed example:
>     metrics.f1_score(y_true, y_pred, average=None)  # doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[80]>", line 1, in <module>
>         metrics.f1_score(y_true, y_pred, average=None)  # doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1044, in f1_score
>         pos_label=pos_label, average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1143, in fbeta_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 548, in model_evaluation.rst
> Failed example:
>     metrics.fbeta_score(y_true, y_pred, average=None, beta=0.5)  # doctest: 
> +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[81]>", line 1, in <module>
>         metrics.fbeta_score(y_true, y_pred, average=None, beta=0.5)  # 
> doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1143, in fbeta_score
>         average=average)
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
> ----------------------------------------------------------------------
> File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/doc/modules/model_evaluation.rst";,>
>  line 550, in model_evaluation.rst
> Failed example:
>     metrics.precision_recall_fscore_support(y_true, y_pred, beta=0.5)  # 
> doctest: +ELLIPSIS
> Exception raised:
>     Traceback (most recent call last):
>       File "/sp/lib/python/cpython-2.6.8/lib/python2.6/doctest.py", line 
> 1253, in __run
>         compileflags, 1) in test.globs
>       File "<doctest model_evaluation.rst[82]>", line 1, in <module>
>         metrics.precision_recall_fscore_support(y_true, y_pred, beta=0.5)  # 
> doctest: +ELLIPSIS
>       File 
> "<https://jenkins.shiningpanda-ci.com/scikit-learn/job/python-2.6-numpy-1.3.0-scipy-0.7.2/ws/sklearn/metrics/metrics.py";,>
>  line 1300, in precision_recall_fscore_support
>         dtype=np.double)
>     TypeError: 'dtype' is an invalid keyword to divide
>
>>>  raise self.failureException(self.format_failure(<StringIO.StringIO 
>>> instance at 0x2d35368>.getvalue()))
>
>
> ----------------------------------------------------------------------
> Ran 29 tests in 71.805s
>
> FAILED (SKIP=2, failures=2)
> make: *** [test-doc] Error 1
> Build step 'Custom Python Builder' marked build as failure
> Archiving artifacts
> Skipping Cobertura coverage report as build was not UNSTABLE or better ...



-- 
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to