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

index XXX is out of bounds for axis 1 with size 10 #12

Open
jli113 opened this issue Nov 28, 2019 · 0 comments
Open

index XXX is out of bounds for axis 1 with size 10 #12

jli113 opened this issue Nov 28, 2019 · 0 comments

Comments

@jli113
Copy link

jli113 commented Nov 28, 2019

Traceback (most recent call last):
File "/home/m/prettyNeatWann/wann_train.py", line 280, in
main(args)
File "/home/m/prettyNeatWann/wann_train.py", line 256, in main
slave()
File "/home/m/prettyNeatWann/wann_train.py", line 196, in slave
result = task.getFitness(wVec,aVec,hyp,seed=seed) # process it
File "/home/m/prettyNeatWann/domain/wann_task_gym.py", line 90, in getFitness
reward[iRep,iVal] = self.testInd(wMat, aVec, seed=seed+iRep,view=view)
File "/home/m/prettyNeatWann/domain/task_gym.py", line 91, in testInd
state, reward, done, info = self.env.step(action)
File "/home/m/prettyNeatWann/domain/classify_gym.py", line 67, in step
log_likelihood = -np.log(action[range(m),y])
IndexError: index 780017 is out of bounds for axis 1 with size 10

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