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
{{ message }}
Repository navigation
Constant input warning in partial correlation reconstructor #201
tests/test_reconstruction.py::test_graph_size
tests/test_reconstruction.py::test_partial_correlation
/home/main/.pyenv/versions/miniconda3-latest/lib/python3.6/site-packages/scipy/stats/stats.py:3399: PearsonRConstantInputWarning: An input array is constant; the correlation coefficent is not defined.
warnings.warn(PearsonRConstantInputWarning())
Don't recall seeing this before, maybe a new warning in scipy? Plausible that the warning is nothing, but should explore further.
Activity
sdmccabe commentedon May 22, 2019
I didn't get this warning in an IPython session.
admercs commentedon Nov 26, 2019
This simply occurs when one of the input arrays contains constant values:
pearsonr([0,1,2,3], [0,0,0,0])