You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expected result should be 1.0 because all the values are the same.
Actual Results
The actual result is 0.0
Versions
/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
self.calc_info()
/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
self.calc_info()
We now raise UndefinedMetricWarning and return 0. There's not a clear definition of these edge cases, so we think it's OK to tell users our solution.
Duplicate of #10843
Uh oh!
There was an error while loading. Please reload this page.
Description
sklearn.metrics.precision_score gives 0.0 when class is 0 only.
Steps/Code to Reproduce
Example:
Expected Results
The expected result should be 1.0 because all the values are the same.
Actual Results
The actual result is 0.0
Versions
/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
self.calc_info()
/usr/local/lib/python3.6/dist-packages/numpy/distutils/system_info.py:625: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
self.calc_info()
System
BLAS
Python deps
pip: 18.0
setuptools: 39.2.0
sklearn: 0.20.0
numpy: 1.15.2
scipy: 1.1.0
Cython: 0.28.3
pandas: 0.23.1
I would be happy to help fix this if folks want. For now, I'm just going to check if all values are zero and if they are, I'll return 1.0 Thanks!
The text was updated successfully, but these errors were encountered: