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

IndexError in generator.py #1

Open
saptab opened this issue Feb 1, 2023 · 0 comments
Open

IndexError in generator.py #1

saptab opened this issue Feb 1, 2023 · 0 comments

Comments

@saptab
Copy link

saptab commented Feb 1, 2023

Please consider that your code has the index error message while running your code as it is with no changes:

Traceback (most recent call last):
File "/mmap-testing/mmap-birl-master/code/runner.py", line 126, in
main()
File "/mmap-testing/mmap-birl-master/code/runner.py", line 51, in main
expertData = generator.generateDemonstration(mdp, problem)
File "/mmap-testing/mmap-birl-master/code/generator.py", line 56, in generateDemonstration
trajs, policy = generateTrajectory(mdp, problem)
File "/mmap-testing/mmap-birl-master/code/generator.py", line 124, in generateTrajectory
trajs, trajVmean, trajVvar = sampleTrajectories(problem.nTrajs, problem.nSteps, policy, mdp, problem.seed)
File "/mmap-testing/mmap-birl-master/code/generator.py", line 232, in sampleTrajectories
a = np.squeeze(piL[s])
IndexError: index 140 is out of bounds for axis 0 with size 48

Solving it requires uncommenting line 227 and commenting line 229 in your generator.py code.

Please consider if that is correct or please push a latest working code of mmap-birl on your github repo.

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