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

mainTafl.py does not work for me #279

Open
rosnu opened this issue Oct 17, 2022 · 0 comments
Open

mainTafl.py does not work for me #279

rosnu opened this issue Oct 17, 2022 · 0 comments

Comments

@rosnu
Copy link

rosnu commented Oct 17, 2022

mainTafl.py does not work; it looks for me like an inconsistency in handling board.
Coach expects for trainExamples (compared to Otello) from getNextState a ndarray, but gets Board objects.

  Traceback (most recent call last):
    File "mainTafl.py", line 34, in <module>
      c.learn()
    File "/content/Coach.py", line 113, in learn
      self.nnet.train(trainExamples)
    File "/content/tafl/pytorch/NNet.py", line 55, in train
      boards = torch.FloatTensor(np.array(boards).astype(np.float64))
  ValueError: setting an array element with a sequence.
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