I Made a Neural Network with just Redstone!

563,107
0
Published 2024-05-25
To try everything Brilliant has to offer—free—for a full 30 days, visit brilliant.org/mattbatwings You’ll also get 20% off an annual premium subscription.

Patreon: www.patreon.com/mattbatwings
Discord: discord.gg/V5KFaF63mV
My socials: linktr.ee/mattbatwings
My texture pack: modrinth.com/resourcepack/mattpack
World Download: (JAVA 1.18.2) www.planetminecraft.com/project/redstone-neural-ne…
IMPORTANT NOTE ABOUT USING THE WORLD DOWNLOAD, PLEASE READ!!! When drawing, make sure to make the numbers SMALL and centered. If you fill the screen with a number, it will not work. This is because the images in the MNIST dataset are small, and that’s what it was trained on.

Code used in this video: github.com/mattbatwings/neuralnetwork

Yannic's video:    • I BUILT A NEURAL NETWORK IN MINECRAFT...  
Redstone Team:    • 【Minecraft】World first pure redstone ...  

3b1b's much better MLP explanation:    • But what is a neural network? | Chapt...  
My explanation of MLPs was inspired by    • I made a Neural Network in Vanilla Mi...  

0:00 Intro
0:23 Backstory
2:02 MLP or CNN?
2:43 MLP Explanation
5:19 The Plan
5:39 Python Simulation
7:45 Input Layer
8:43 Hidden Layer
11:37 ReLU
11:58 Output Layer
13:09 Softmax (Kinda)
15:25 Showcase
16:10 Sponsor

Music (in order):
Astrophysics - Sweden (C418 synthwave/80s)    • Sweden (C418 synthwave/80s)  
HOME - Still Life    • HOME - Still Life  
Helynt- Continue    • Continue  
LitKidBeats - GOOD VIBES    • [FREE] Happy Type Beat - "GOOD VIBES"...  
Harris Heller - Guilty Spark    • Guilty Spark  
Harris Heller - Streamline    • Streamline  
Infraction - Photograph    • Vlog lo-fi Anime Fashion by Infractio...  
Harris Heller - Iridescent    • Iridescent  
Harris Heller - Path Less Traveled    • Path Less Traveled  
unfeel - Deep Blue    • Deep Blue  
LuKremBo - biscuit    • (no copyright music) lofi type beat “...  
Helynt - Moog City    • Moog City  
LAKEY INSPIRED - Chill Day    • LAKEY INSPIRED - Chill Day  
Infraction - Serotonin    • Vlog Lo-Fi Chill by Infraction [No Co...  
HOME - We're Finally Landing    • We're Finally Landing  
Blue Wednesday - New Shoes    • Blue Wednesday - New Shoes  
Harris Heller - Plethora    • Plethora  
LAKEY INSPIRED - The Process    • LAKEY INSPIRED - The Process  
unfeel - Kinda Love    • Kinda Love  
HOME - Head First    • HOME - Head First  
Infraction - Jeju    • Vlog Chill Hip-Hop by Infraction [No ...  

This video was sponsored by Brilliant

All Comments (21)
  • @CraftyMasterman
    if you guys think this is insane, it took this guy like 2 weeks to make this all start to finish this man is a MACHINE
  • @wiki2014
    ChatGPT playing minecraft: ❌️ Minecraft running ChatGPT: ✅️
  • @Knarfy
    I will likely never fully understand these videos, but man are they impressive 👏 Incredible work! My brain is fried
  • @giosee_
    the ONLY person on youtube that managed to explain neural networks in seconds, it took me days of research to understand them, be able to make and explain them
  • @Ierzi
    This was 100% a brilliant partnership
  • @lolmom5004
    my brother in christ, IT TOOK ME TWO MONTHS TO MAKE A NETWORK FROM SCRATCH THAT SOVLED THE MNIST DATASET IN PYTHON AND YOU DID IT IN REDSTONE IN 2 WEEKS, i applaude you, you redstone genius
  • @IGaming73
    We got real AI in Minecraft before GTA 6
  • @devultra1125
    Bro, people out there creating neural networks in Minecraft, and I'm struggeling opening a chocalate bar while watchin them
  • @puppypalice
    We’re getting to the point where pretty soon someone is gonna recreate the nes in minecraft, or make doom in minecraft, im betting that within 10 years someone will get either doom or super Mario bros or the legend of Zelda running just off redstone
  • @TCCPeanutButter
    I’m struggling on a 2x2 this dudes making a Neural Network.
  • I just did a machine learning course last semester, and your 2 minute explanation for an MLP network was way easier to understand than our textbooks chapter that covered it. This entire build is insane, amazing work!
  • @RagedRhyme
    These projects of your are insane and the fact you choose a project AND actually push yourself to do it is super admirable
  • @mmdts
    In 16-bit logic, you can replace division by 15 by a multiplication by -30583 (32 bit result), three shifts, and two addition operations. You can easily figure this out by compiling a function that returns its 16-bit argument divided by 15 on clang with -O2, and what's efficient to do on silicon fabric (integers over floats, and multiplication over division) is almost always efficient in minecraft too. As for softmax, in 2021, researchers at nvidia created a hardware-efficient softmax replacement called "softermax" that is realistically implementable in minecraft. I'm not a minecraft expert, but I love seeing hardware implementations of functions, and minecraft is no exception.
  • @matercan5649
    The internet is such a cool place, imagine having a degree and choosing it to build real video games and software into minecraft and share it for a job, instead of actually building the video games and software, and making a living from that. The internet is so cool.
  • Your transcript for college, internships, and future jobs in computer science is gonna be so stacked
  • @viaJustin1910
    This is such a good demonstration that every hard problem is just a ton of smaller easier problems.
  • @NoahWolfe
    You solved a number of difficult problems elegantly, but your amazing ability to communicate those ideas both visually and with narrative ease really stands out. Fantastic piece of content my dude.
  • 14:19 Exponentiation is pretty simple, just convert the exponent to a binary number, then for each bit that is turned on you add the corresponding exponent, and to get the list of corresponding exponents you just start with the number you're raising to the power of the exponent and multiply by two each step. Here's an example, if you have 5^7 then it will convert 7 to binary which is 111 then it will multiply 5, 25, and 625 to get 78,125 which is the correct answer.