data structure of action in World.step()

13 views
Skip to first unread message

Matt Chapman

unread,
Dec 2, 2012, 8:55:56 PM12/2/12
to becca...@googlegroups.com
I just noticed that if I print 'action' from in my World.step(), the first time, it is a simple array, i.e.

[0.  0.]

But there after (i.e., once planner has actually selected an action) it is a nested array, i.e.,

[[0.]
 [0.]]

Is this expected? Or indicative of a bug in my World code? Or a bug in BECCA?

 
All the Best,

Matt Chapman

Brandon Rohrer

unread,
Dec 3, 2012, 12:01:16 PM12/3/12
to becca...@googlegroups.com
It's a bug. Thanks for catching it. The latest commit on the github brohrer/becca repo has the fix. 

For a manual fix, change this line in tester.py:

actions = np.zeros(world.num_actions)

to this:

actions = np.zeros((world.num_actions,1))

Cheers :)

Brandon

Reply all
Reply to author
Forward
0 new messages