weecology / sad-comparison

Elita Baldridge's dissertation repository
8 stars 7 forks source link

Graphing likelihoods error #29

Closed embaldridge closed 9 years ago

embaldridge commented 9 years ago

/usr/lib/python2.7/dist-packages/numpy/core/function_base.py:88: RuntimeWarning: invalid value encountered in multiply y = _nx.arange(0, num) * step + start

embaldridge commented 9 years ago

Could be a something is messed up with the data problem, or a things I don't understand problem. I might try graphing the AICc weights vs the likelihoods, that might be cool.

embaldridge commented 9 years ago

Still not working, but for a different reason. The likelihoods are actual log-likelihoods now, instead of AICcs.

File "/usr/lib/wingide-101-4.1/src/debug/tserver/_sandbox.py", line 543, in File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 2830, in hist stacked=stacked, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 8249, in hist if isinstance(x, np.ndarray) or not iterable(x[0]): IndexError: list index out of range

embaldridge commented 9 years ago

value > 0 is not going to work because all the values are less than zero. This was a bug fix that made another bug.

embaldridge commented 9 years ago

/usr/lib/python2.7/dist-packages/numpy/core/function_base.py:88: RuntimeWarning: invalid value encountered in multiply y = _nx.arange(0, num) * step + start /usr/lib/python2.7/dist-packages/numpy/core/function_base.py:88: RuntimeWarning: invalid value encountered in add y = _nx.arange(0, num) * step + start Traceback (most recent call last): File "/usr/lib/wingide-101-4.1/src/debug/tserver/_sandbox.py", line 543, in File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 2830, in hist stacked=stacked, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 8506, in hist ymin = np.amin(m[m != 0]) # filter out the 0 height bins File "/usr/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2214, in amin out=out, keepdims=keepdims) File "/usr/lib/python2.7/dist-packages/numpy/core/_methods.py", line 21, in _amin out=out, keepdims=keepdims) ValueError: zero-size array to reduction operation minimum which has no identity

embaldridge commented 9 years ago

Data problem, Gentry site 179, decimal abundance 5.5.

embaldridge commented 9 years ago

This should work now with the flawed site removed- currently tested with querying out the bad site, not confirmed if it is working with the rerun data. However, the problem was clearly with the site, not the graphing code, so I'm calling this fixed.