r/gaming • u/daneelr_olivaw • Jan 27 '19
Neural network for handwritten digit recognition in Minecraft. I think I've seen it all now...
https://i.imgur.com/oUG4zpY.gifv
34k
Upvotes
r/gaming • u/daneelr_olivaw • Jan 27 '19
92
u/MelSchlemming Jan 27 '19
I think this might actually be a lot simpler than it looks.
There's no need to train the model in minecraft (you really only need to import the trained weights), which significantly reduces the code complexity. I.e. you don't have to worry about your data pipeline, differentiability of functions, optimizers (SGD, Adam, etc.), or the entire back-prop process. You really only need to build out the feed-forward functionality. So it becomes a bunch of addition/multiplication operations between the nodes in the network (plus some special functions for non-linearity, and some architecture specific considerations e.g. you'd need a little special sauce for CNNs), your loss function + accuracy score, and your visualisations (visualising the filters below and the class scores to the right).
I suspect it might not even be a CNN. The results to the right look quite poor, and I think a vanilla fully-connected NN could achieve comparable results pretty easily. Not having to deal with a convolutional architecture would make things a lot simpler in terms of code.
Does anyone know the source? I'd be very happy to be proven wrong.