r/ComputerCraft • u/Insurgentbullier NIH patient • Jan 16 '26
MNIST Digit Classification
Machine learning in ComputerCraft! Code is here.
The training performance is mediocre¹ (and WIP), but the features are there at least.It's an adaptation of a C ML library based on Magicalbat's awesome video.
EDIT:
¹ 2x speedup thanks to an idea by u/9551-eletronics
62
Upvotes


View all comments
Show parent comment
2
u/Insurgentbullier NIH patient Jan 17 '26
Ah, I’ve used CraftOS Accelerated (LuaJIT) to make the training process less painful. Normal CraftOS (pure Lua) would have taken ~140 minutes to train for 20 epochs.
Inside Minecraft I haven’t tested yet, and I suspect it would time out before completion. So that’s a WIP.