The code outline
Now that you have some context, let’s switch to the code, which is in the Chapter21 directory in the book’s GitHub repository. In this section, I’m going to give a quick outline of my implementation and the key design decisions, but before that, I have to emphasize the important points about the code to set up the correct expectations:
-
I’m not a researcher, so the original goal of this code was just to reimplement the paper’s method. Unfortunately, the paper has very few details about the exact hyperparameters used, so I had to experiment a lot, and still, my results are very different from those published in the paper.
-
At the same time, I’ve tried to implement everything in a general way to simplify further experiments. For example, the exact details about the cube state and transformations are abstracted away, which allows us to implement more puzzles similar to the...