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

ValueError: x and y must have same first dimension, but have shapes (2,) and (1,) #1

Open
WenyuHuang opened this issue Mar 14, 2020 · 0 comments

Comments

@WenyuHuang
Copy link

when running runner.py, got following error message:Traceback (most recent call last):
File "/Users/wenyuhuang/PycharmProjects/aima-based-irl-master/runner.py", line 202, in
main()
File "/Users/wenyuhuang/PycharmProjects/aima-based-irl-master/runner.py", line 94, in main
run_multiple_birl(birl, expert_mdp, expert_trace, number_of_iterations)
File "/Users/wenyuhuang/PycharmProjects/aima-based-irl-master/runner.py", line 130, in run_multiple_birl
plot_errors(policy_error, reward_error, directory_name, birl, i, expert_mdp, mdp)
File "/Users/wenyuhuang/PycharmProjects/aima-based-irl-master/runner.py", line 114, in plot_errors
ax2.plot(range(birl.birl_iteration), policy_error, 'ro')
File "/Users/wenyuhuang/PycharmProjects/aima-based-irl-master/venv/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 1646, in plot
lines = [*self._get_lines(*args, data=data, **kwargs)]
File "/Users/wenyuhuang/PycharmProjects/aima-based-irl-master/venv/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 216, in call
yield from self._plot_args(this, kwargs)
File "/Users/wenyuhuang/PycharmProjects/aima-based-irl-master/venv/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 342, in _plot_args
raise ValueError(f"x and y must have same first dimension, but "
ValueError: x and y must have same first dimension, but have shapes (2,) and (1,)

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

No branches or pull requests

1 participant