chris-chris / pysc2-examples

StarCraft II - pysc2 Deep Reinforcement Learning Examples
Apache License 2.0
758 stars 355 forks source link

File "train_mineral_shards.py", line 130, in main act.save("mineral_shards.pkl") AttributeError: 'tuple' object has no attribute 'save' #10

Open hechenghai opened 6 years ago

bbueno5000 commented 6 years ago

I believe the tuple is meant to be stored separately,

act_x, act_y = deepq_mineral_shards.learn(

and then saved separately,

act_x.save("mineral_shards_x.pkl")
act_y.save("mineral_shards_y.pkl")

Or allow the callback to handle it,

212      act_x = deepq_mineral_shards.ActWrapper(locals['act_x'])
213      act_y = deepq_mineral_shards.ActWrapper(locals['act_y'])