pythonscipystats模块:ValueError:';轴';禁止进入

pythonscipystats模块:ValueError:';轴';禁止进入,python,scipy,Python,Scipy,我用scipy的统计数据来计算Fisher的准确测试分数。。 它工作得非常好,除了一些矩阵,它返回valueError。 比如说, odds, pvalue = stats.fisher_exact([[1,2],[9,84419233]]) 返回 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packag

我用scipy的统计数据来计算Fisher的准确测试分数。。 它工作得非常好,除了一些矩阵,它返回valueError。 比如说,

odds, pvalue = stats.fisher_exact([[1,2],[9,84419233]])
返回

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/scipy-0.14.0.dev_4938da3-py2.7-macosx-10.8-x86_64.egg/scipy/stats/stats.py", line 2606, in fisher_exact
    if float(np.abs(pexact - pmode)) / np.abs(np.max(pexact, pmode)) <= 1 - epsilon:
  File "/Library/Python/2.7/site-packages/numpy-1.9.0.dev_fde3dee-py2.7-macosx-10.8-x86_64.egg/numpy/core/fromnumeric.py", line 2126, in amax
    return amax(axis=axis, out=out)
  File "/Library/Python/2.7/site-packages/numpy-1.9.0.dev_fde3dee-py2.7-macosx-10.8-x86_64.egg/numpy/core/_methods.py", line 17, in _amax
    out=out, keepdims=keepdims)
ValueError: 'axis' entry is out of bounds
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/Library/Python/2.7/site packages/scipy-0.14.0.dev_4938da3-py2.7-macosx-10.8-x86_64.egg/scipy/stats/stats.py”,第2606行,格式为fisher_

如果float(np.abs(pexact-pmode))/np.abs(np.max(pexact,pmode))这是fisher_-exact函数中的一个错误。我在这里报告了这个问题:

这是fisher_-exact
函数中的一个错误。我在这里报告了问题:

这看起来像是
fisher\u-exact
中的一个bug。这看起来像
fisher\u-exact
中的一个bug。