【发布时间】:2018-11-28 06:31:19
【问题描述】:
我试图在 jupyter notebook 上运行 https://github.com/AppliedDataSciencePartners/DeepReinforcementLearning,在我执行这个块之前一切都很好。
from game import Game
from funcs import playMatchesBetweenVersions
import loggers as lg
env = Game()
playMatchesBetweenVersions(env, 2, -1, 26, 1, lg.logger_tourney,0, 1)
如果我运行它,重要的部分是 -1 是针对人类玩家的,这会发生。 Ask for imput
当输入有效输入时,会发生这种情况。 IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
【问题讨论】:
-
在线26,
action=int(input("Enter your chosen answer: ")) -
如果有帮助,请投票并将答案标记为已接受。谢谢!
标签: python numpy tensorflow