impact-prediction icon indicating copy to clipboard operation
impact-prediction copied to clipboard

ValueError: The truth value of an array with more than one element is ambiguous

Open jamestch opened this issue 7 years ago • 0 comments

Hi, Luca Weihs! I have downloaded your source code from the github, and ran as you told in README.md. But I met the error message as below:

Traceback (most recent call last): File "paper_predictions.py", line 22, in run_tests(config) File "/home/bdsirs/tianch/app/impact-prediction-master/test_runners.py", line 152, in run_tests mape_test_name, colors=ml_colors, markers=ml_markers) File "/home/bdsirs/tianch/app/impact-prediction-master/plotting.py", line 35, in plot_mape zorder=1, lw=3) File "/home/bdsirs/tianch/py2env/local/lib/python2.7/site-packages/matplotlib/pyplot.py", line 2929, in errorbar **kwargs) File "/home/bdsirs/tianch/py2env/local/lib/python2.7/site-packages/matplotlib/init.py", line 1898, in inner return func(ax, *args, **kwargs) File "/home/bdsirs/tianch/py2env/local/lib/python2.7/site-packages/matplotlib/axes/_axes.py", line 2906, in errorbar data_line = mlines.Line2D(x, y, **plot_line_style) File "/home/bdsirs/tianch/py2env/local/lib/python2.7/site-packages/matplotlib/lines.py", line 420, in init self.set_markerfacecolor(markerfacecolor) File "/home/bdsirs/tianch/py2env/local/lib/python2.7/site-packages/matplotlib/lines.py", line 1206, in set_markerfacecolor if self._markerfacecolor != fc: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

jamestch avatar Aug 28 '17 01:08 jamestch