kferg.dev

[ tensorflow ]

In chapter 7 of my (+ Max’s) book, Deep Learning and the Game of Go, there is an example that collects a sample of human go game records, encodes them, and trains a small neural network. This is followed by a sample output showing it achieving over 90% training set accuracy. Several readers have reported that they could not reproduce this. You’re not crazy! There is a mismatch between the code listing in the book and the results listing.

Even after decades of hacking with Python, I’m still learning new things. Recently I discovered the forkserver option in the multiprocessing library. This is a pretty obscure, low-level setting, but it solved some problems I’ve had trying to use TensorFlow with multiprocessing.