-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
Labels
defectA clear bug or issue that prevents SciPy from being installed or used as expectedA clear bug or issue that prevents SciPy from being installed or used as expectedscipy.stats
Milestone
Description
Describe your issue.
beta.pdf has changes from 1.10 to the 1.11.0.dev0 build and now returns incorrect results.
Reproducing Code Example
import numpy as np
from scipy import stats
xx = np.array([0. , 0.11111111, 0.22222222, 0.33333333, 0.44444444, 0.55555556, 0.66666667, 0.77777778, 0.88888889, 1. ])
k = np.array([0., 1., 2., 3., 4.])
n=4.0
pdf = stats.beta.pdf(xx[..., None], k + 1, n - k + 1)
np.testing.assert_allclose(pdf[-1,-1],5.0)
Passes on 1.10.0, fails on 1.11.0.dev0.
Error message
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 1 / 1 (100%)
Max absolute difference: 5.
Max relative difference: 1.
x: array(0.)
y: array(5.)
SciPy/NumPy/Python version and system information
1.11.0.dev0+1817.98c51a6 1.23.5 sys.version_info(major=3, minor=11, micro=2, releaselevel='final', serial=0)
{
"Compilers": {
"c": {
"name": "gcc",
"linker": "ld.bfd",
"version": "10.3.0",
"commands": "cc"
},
"cython": {
"name": "cython",
"linker": "cython",
"version": "0.29.34",
"commands": "cython"
},
"c++": {
"name": "gcc",
"linker": "ld.bfd",
"version": "10.3.0",
"commands": "c++"
},
"fortran": {
"name": "gcc",
"linker": "ld.bfd",
"version": "10.3.0",
"commands": "gfortran"
},
"pythran": {
"version": "0.12.1",
"include directory": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-024pp_ot\\overlay\\Lib\\site-packages/pythran"
}
},
"Machine Information": {
"host": {
"cpu": "x86_64",
"family": "x86_64",
"endian": "little",
"system": "windows"
},
"build": {
"cpu": "x86_64",
"family": "x86_64",
"endian": "little",
"system": "windows"
},
"cross-compiled": false
},
"Build Dependencies": {
"blas": {
"name": "openblas",
"found": true,
"version": "0.3.21.dev",
"detection method": "pkgconfig",
"include directory": "/c/opt/64/include",
"lib directory": "/c/opt/64/lib",
"openblas configuration": "USE_64BITINT= DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS= NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= SKYLAKEX MAX_THREADS=2",
"pc file directory": "c:/opt/64/lib/pkgconfig"
},
"lapack": {
"name": "openblas",
"found": true,
"version": "0.3.21.dev",
"detection method": "pkgconfig",
"include directory": "/c/opt/64/include",
"lib directory": "/c/opt/64/lib",
"openblas configuration": "USE_64BITINT= DYNAMIC_ARCH=1 DYNAMIC_OLDER= NO_CBLAS= NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= SKYLAKEX MAX_THREADS=2",
"pc file directory": "c:/opt/64/lib/pkgconfig"
}
},
"Python Information": {
"path": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-cgdr6yw7\\cp311-win_amd64\\build\\venv\\Scripts\\python.exe",
"version": "3.11"
}
}
Metadata
Metadata
Assignees
Labels
defectA clear bug or issue that prevents SciPy from being installed or used as expectedA clear bug or issue that prevents SciPy from being installed or used as expectedscipy.stats