8000 precision_score shows incorrect value · Issue #10843 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
precision_score shows incorrect value #10843
Closed
@animeshprasad

Description

@animeshprasad

Description

precision_score shows incorrect value

Steps/Code to Reproduce

A=np.array([[0,0,1],[0,1,0],[0,0,1]])
B=A
precision_score(A,B, average=None)
array([ 0., 1., 1.])

Expected Results

array([ 1., 1., 1.])

Actual Results

array([ 0., 1., 1.])

Versions

import platform; print(platform.platform())
Darwin-14.5.0-x86_64-i386-64bit
import sys; print("Python", sys.version)
('Python', '2.7.10 (default, Jul 14 2015, 19:46:27) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]')
import numpy; print("NumPy", numpy.version)
('NumPy', '1.13.3')
import scipy; print("SciPy", scipy.version)
('SciPy', '1.0.0')
import sklearn; print("Scikit-Learn", sklearn.version)
('Scikit-Learn', '0.18.1')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0