maxpumperla / deep_learning_and_the_game_of_go

Code and other material for the book "Deep Learning and the Game of Go"
https://www.manning.com/books/deep-learning-and-the-game-of-go
987 stars 390 forks source link

chapter 13 alphago_policy_sl.py #65

Closed activate-an closed 4 years ago

activate-an commented 4 years ago

when i run alphago_policy_sl.py i will get an error ,if anybody can help me.

Epoch 1/200 Traceback (most recent call last): File "E:/13beifen/code/example/alphago_policy_sl.py", line 51, in main( ) File "E:/13beifen/code/example/alphago_policy_sl.py", line 37, in main callbacks=[ModelCheckpoint('../checkpoints/alphago_slpolicy{epoch}.h5')] File "D:\Anaconda3\envs\deep\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "D:\Anaconda3\envs\deep\lib\site-packages\keras\engine\training.py", line 1426, in fit_generator initial_epoch=initial_epoch) File "D:\Anaconda3\envs\deep\lib\site-packages\keras\engine\training_generator.py", line 229, in fit_generator callbacks.on_epoch_end(epoch, epoch_logs) File "D:\Anaconda3\envs\deep\lib\site-packages\keras\callbacks.py", line 77, in on_epoch_end callback.on_epoch_end(epoch, logs) File "D:\Anaconda3\envs\deep\lib\site-packages\keras\callbacks.py", line 336, in on_epoch_end self.progbar.update(self.seen, self.log_values) AttributeError: 'ProgbarLogger' object has no attribute 'log_values'

Process finished with exit code 1

maxpumperla commented 4 years ago

@activate-an check out this thread: https://github.com/keras-team/keras/issues/3657 it's quite possible that your data is empty or some attributes set incorrectly.

activate-an commented 4 years ago

thank you @maxpumperla ,This problem has been solved, thank you very much