Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'float' object cannot be interpreted as an index #1

Open
hendrikschilling opened this issue Nov 22, 2017 · 0 comments · May be fixed by #2
Open

TypeError: 'float' object cannot be interpreted as an index #1

hendrikschilling opened this issue Nov 22, 2017 · 0 comments · May be fixed by #2

Comments

@hendrikschilling
Copy link

Traceback (most recent call last):
File "plot_metric_overview.py", line 51, in
main()
File "plot_metric_overview.py", line 47, in main
metric_overviews.plot_general_overview(algorithms+meta_algorithms, scenes, metrics)
File "/data/lf_data/synthetic/toolkit/source/toolkit/evaluations/metric_overviews.py", line 193, in plot_general_overview
colorbar_bins=metric.colorbar_bins, fontsize=fs)
File "/data/lf_data/synthetic/toolkit/source/toolkit/utils/plotting.py", line 104, in add_colorbar
plt.imshow(np.ones((height*scale, img_width)), alpha=0)
File "/usr/lib/python2.7/site-packages/numpy/core/numeric.py", line 192, in ones
a = empty(shape, dtype, order)
TypeError: 'float' object cannot be interpreted as an index

@hendrikschilling hendrikschilling linked a pull request Nov 22, 2017 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant