Error in the MC Agent
Opened this issue · 0 comments
LorenzoM1997 commented
Have an error when running custom.py
with the MCAgent predicting RainbowAgent versus the real RainbowAgent.
my_belief /= my_belief.sum()
Traceback (most recent call last):
File "custom_rl.py", line 184, in <module>
runner.run()
File "custom_rl.py", line 117, in run
action = agent.act(ob, self.env)
File "/home/lorenzo/hanabi/agents/mc_agent.py", line 245, in act
other_vec, game_state.cur_player())
File "/home/lorenzo/hanabi/agents/mc_agent.py", line 80, in sampled_vector
self.belief.add_known(card) # add the knowledge of the card
File "/home/lorenzo/hanabi/bayes.py", line 41, in add_known
self.full_know -= card
TypeError: ufunc 'subtract' output (typecode 'O') could not be coerced to provided output parameter (typecode 'B') according to the casting rule ''same_kind''```