MENACE: the pile of matchboxes which can learn

  Рет қаралды 432,725

Stand-up Maths

Stand-up Maths

6 жыл бұрын

See more data and check out what we changed on the second day (which caused MENACE to learn a different strategy) in the second video: • Day 2: Revenge of MENACE
Check out Matt Scroggs’s original blog post about MENACE and in the amazing Chalkdust magazine.
www.mscroggs.co.uk/blog/19
chalkdustmagazine.com/tag/menace/
Play against the online version of MENACE:
www.mscroggs.co.uk/menace/
This is the original 1961 “Experiments on the mechanization of game-learning” by Donald Michie.
www.dropbox.com/s/ycsycu0l01g...
Thanks to Katie Steckles for organising our stall at the Manchester Science Festival and Antonio Benitez for giving us the space.
The MENACE crew were:
Alison Clarke, Andrew Taylor, Ash Frankland, David Williams, Katie Steckles, Matthew Scroggs, Paul Taylor, Sam Headleand and Zoe Griffiths
Get your MENACE data here!
www.dropbox.com/s/0f9ukxxvh0p...
CORRECTIONS:
None yet. Let me know if you spot anything!
Thanks to my Patreon supporters who made this possible! Here are the random subset I read out during the video:
Ben White
Scott Robinson
Nelson Emerson
Amy Sandland
Neil McGovern
Support my channel and make more videos like this possible!
/ standupmaths
Music by Howard Carter
Filming and editing by Trunkman Productions
Audio mastering by Peter Doggart
Design by Simon Wright
MATT PARKER: Stand-up Mathematician
Website: standupmaths.com/
Maths book: makeanddo4D.com/
Nerdy maths toys: mathsgear.co.uk/

Пікірлер: 1 000
@BazzFreeman
@BazzFreeman 6 жыл бұрын
So, when I lose a game I can honestly say "I am dumber than a box of matches"
@AlexKing-tg9hl
@AlexKing-tg9hl 4 жыл бұрын
pile of matchboxes
@garychap8384
@garychap8384 3 жыл бұрын
No, but clearly something _could_ be said about the arrangement of your _"marbles"_ ; )
@Septimus_ii
@Septimus_ii 3 жыл бұрын
Yes, but the pile of matchboxes has practiced more than you
@266art
@266art 2 ай бұрын
Not necessarily ​@@Septimus_ii
@HagenvonEitzen
@HagenvonEitzen 6 жыл бұрын
9:20 That suggests to build Menace A and Menace B - and have them both learn by only playing against each other
@Eurley66
@Eurley66 6 жыл бұрын
Would actually work, adversarial machine learning is quite interesting.
@Anvilshock
@Anvilshock 6 жыл бұрын
And don't forget to let Robert Miles know!
@aidangarner1181
@aidangarner1181 6 жыл бұрын
This is how we end up with the matrix.
@crashdemons
@crashdemons 6 жыл бұрын
This model of Menace just builds a [physical] FSM (a Finite-State-Machine knowing all game states) and slowly prunes edges that lead to known failure states. In particular, this works on games that are trivial (we can iterate all the states and their moves), and it can be done by just tracing edges from each failure state back and removing that edge - something done faster without humans or matchboxes. Also, it relies on human knowledge to solve the problem since so much is already represented by these connections (box-bead-box) - so it's really questionable if you can call this machine learning versus just filtering a state-machine. [For example: if we have a phonebook of all numbers in the world and if we randomly call a number and remove it if it's disconnected, we will eventually get a phonebook of all connected numbers - does the phonebook learn?] In larger real problems you need to both be able to explore the problem space, identify undesirable states and optimize at the same time, not just prune from all possible moves.
@KuraIthys
@KuraIthys 6 жыл бұрын
You make a valid point. And that's the challenge isn't it? The only guaranteed optimal solution is to examine the entire possibility space of a problem and find the optimal point (or points, if there are solutions of equal weight) in that space. Fine with small problem spaces, but impractical with larger ones, thus we need a way of getting a good (but not necessarily ideal) solution with less effort...
@CractusJohn
@CractusJohn 6 жыл бұрын
"Can a Match Box?" "No, but it can learn."
@andymcl92
@andymcl92 6 жыл бұрын
The secret alternative answer to the impossible quiz...
@JL-zw7hi
@JL-zw7hi 6 жыл бұрын
John Joubran No but a tin can
@amyshaw893
@amyshaw893 6 жыл бұрын
well, i know what im coding tonight
@trickytreyperfected1482
@trickytreyperfected1482 6 жыл бұрын
Nillie The whole point to getting good at coding is to first code what has already been coded. That way, you can then know lots of new stuff to use in your own projects.
@nix207
@nix207 6 жыл бұрын
You know what, I'm gonna try this too now.
@ragnkja
@ragnkja 6 жыл бұрын
That makes sense, Trey Atkins and Elf Friend. Thanks for taking the time to make me a bit less ignorant.
@amyshaw893
@amyshaw893 6 жыл бұрын
i was just kinda bored and wanted to code something...
@Periiapsis
@Periiapsis 6 жыл бұрын
Elf Friend coding algebra ( ͡° ͜ʖ ͡°)
@MisterAppleEsq
@MisterAppleEsq 6 жыл бұрын
Matt 'chbox' Parker
@cosmicjenny4508
@cosmicjenny4508 6 жыл бұрын
+Mister Apple Damn you!
@onecommunistboi
@onecommunistboi 6 жыл бұрын
Classic Parker box.
@StuziCamis
@StuziCamis 6 жыл бұрын
A Parker pun 👍
@dijek5511
@dijek5511 6 жыл бұрын
+
@Richard_is_cool
@Richard_is_cool 6 жыл бұрын
He is a Parker matchbox, basically.
@EtzEchad
@EtzEchad 3 жыл бұрын
I remember that Martin Gardner article (I believe he published it in Scientific American) and I built this and played it as a teenager in the 60s. This was one of the first steps I took toward becoming a Computer Scientist. That was fun!
@ADHD_Gamer
@ADHD_Gamer Жыл бұрын
reading that book I do not remember that many boxes. I believe he removed the mirror layouts. not sure. but yet, got me into A.I. LOL
@kayleighlehrman9566
@kayleighlehrman9566 6 жыл бұрын
MENACE, for when the machine goes first, and DENNIS, for when the human goes first
@IceMetalPunk
@IceMetalPunk 6 жыл бұрын
DENACE: Dueling, Educable Naughts-And-Crosses Engine. When they're pitted against each other in true adversarial learning fashion, they're still DENACE the MENACE :)
@yoyoyonono
@yoyoyonono 3 жыл бұрын
Dennis liao
@cosmicjenny4508
@cosmicjenny4508 6 жыл бұрын
"This must be what procreating feels like." UM. Okay, Matt...
@bpery1614
@bpery1614 6 жыл бұрын
He's a mathematician, he wouldn't know otherwise
@mdfogarty
@mdfogarty 6 жыл бұрын
Quote is at 8:32, had the same reaction as you.
@CapaTwoZero
@CapaTwoZero 6 жыл бұрын
A real Parker analogy.
@PhilBagels
@PhilBagels 6 жыл бұрын
Trust me on this: It feels different.
@patrese993
@patrese993 6 жыл бұрын
Who is looking for backdoors in the AI then.......?
@kxuydhj
@kxuydhj Жыл бұрын
"I never thought i'd have a sense of pride over a sentient pile of matchboxes, but here we are." This line was great enough by itself, but he really perfected it by saying "This must be what procreating feels like".
@linamishima
@linamishima 6 жыл бұрын
Menace doesn't die, it just learns that the only way to win is not to play :D
@keithkrummel9344
@keithkrummel9344 6 жыл бұрын
kzbin.info/www/bejne/bHWqf42km7CMpLc
@smaug131
@smaug131 3 жыл бұрын
Or Menace loses all hope, poor thing
@thejunkman
@thejunkman 6 жыл бұрын
Obligatory quote "The only winning move is not to play"
@vpheonix
@vpheonix 6 жыл бұрын
"War Games" - a great movie.
@Graknorke
@Graknorke 6 жыл бұрын
How about a nice game of chess?
@rcb3921
@rcb3921 6 жыл бұрын
No. Let's play Global Thermonuclear War.
@jwgmail
@jwgmail 5 жыл бұрын
Hello Joshua
@Ritefita
@Ritefita 5 жыл бұрын
I've seen that AI's decision in some AI youtube
@Quintkat
@Quintkat 6 жыл бұрын
This is secretly one of the best and simplest videos explaining machine learning
@MarcelPogorzelski
@MarcelPogorzelski 6 жыл бұрын
Corner is by the way the best opening move against humans because it's an unusual move. It's still a drawn game if played right, but people who aren't familiar has a greater chance of doing the wrong move.
@JavierSalcedoC
@JavierSalcedoC 6 жыл бұрын
Not because it's an unusual position but because is mathematically the best starting position
@aarondavis5386
@aarondavis5386 6 жыл бұрын
Like the person before me said: corner is the best position to open with once you know the moves if you start in the corner if the you will win 100% of the time if your opponent goes anywhere but center, if that happens take the opposite corner and you still win 100% of the time your opponent doesn't take a side space, and only in that situation are you forced to draw.
@FinetalPies
@FinetalPies 6 жыл бұрын
Sorry but center is the best move. What's the counter to your opponent going corner first? Go center. As long as you know that the center is the most important position, its very hard to lose.
@asherael
@asherael 5 жыл бұрын
the game can reliably be won or tied starting in the corner, Menace gets to go first, it needs to take the corner.
@pedroteran5885
@pedroteran5885 3 жыл бұрын
Marcel is simply right. You will get a win (at least once) against most humans by giving them a chance to use their usual centerplay strategy in cornerplay. But you will get only draw after draw after draw if you play center.
@samrichardson8388
@samrichardson8388 6 жыл бұрын
As a dad, I can tell you that procreation carries a wide range of emotions, with pride being a small part. Fear and frustration are much more common.
@andymcl92
@andymcl92 6 жыл бұрын
You don't think searching for the right box so you can add or remove some beads all day would be frustrating?
@samrichardson8388
@samrichardson8388 6 жыл бұрын
andymcl92 I can't speak to that. He said it was like procreation, and it may be. I only know the procreation part
@PatPatych
@PatPatych 6 жыл бұрын
As your mum, I disapprove this comment.
@npc6817
@npc6817 4 жыл бұрын
You made a whole child? How many known universes could fit inside the sphere of radius in centimeters equal to the number of boxes that it took?
@jimnelsen2064
@jimnelsen2064 2 жыл бұрын
when two matchboxes love each other very much.......
@gloweye
@gloweye 3 жыл бұрын
I'd say, start with like 4 of each color in each box, so it's harder to kill off routes early in development. It should learn a bit slower, therefore keeping it more fun at the convention, and it should end up knowing *all* Paths to Victory.
@kwinvdv
@kwinvdv 6 жыл бұрын
You could also teach matchboxes to play Dr. Nim.
@achu11th
@achu11th 6 жыл бұрын
Parker sentient beings.
@crobes4155
@crobes4155 6 жыл бұрын
The human race is going to be destroyed by matchboxes!
@achu11th
@achu11th 6 жыл бұрын
TheTopazRobot they are just Parker sentient. They can learn how to draw with the human race only.
@EPMTUNES
@EPMTUNES 6 жыл бұрын
hes such a MES
@achu11th
@achu11th 6 жыл бұрын
EPMTUNES wrong channel, but nice to meet you. Here I prefer Parker Square jokes as you may have guessed already. So I would be considered a Parker MES.
@EPMTUNES
@EPMTUNES 6 жыл бұрын
achu11th good idea. I’m going to start to make Parker square references on mes’ vids
@DataCab1e
@DataCab1e 6 жыл бұрын
No, no, no... Use Tic Tac boxes containing differently-colored toes!
@johncameron1935
@johncameron1935 6 жыл бұрын
DataCab1e that took me a second.
@lucianodebenedictis6014
@lucianodebenedictis6014 6 жыл бұрын
Abandoned for the lack of toe donations
@jeremybuchanan4759
@jeremybuchanan4759 6 жыл бұрын
Really puts the 'cure' in pedicure!
@alexwang982
@alexwang982 5 жыл бұрын
Ew
@npc6817
@npc6817 4 жыл бұрын
@@lucianodebenedictis6014 if the machine can't survive a lack of toes then could we say it is... lack-toes intolerant?
@felixmerz6229
@felixmerz6229 5 жыл бұрын
This is absolutely amazing. I love the cross-over of high and low tech and this is the perfect synergy.
@KarnKaul
@KarnKaul 6 жыл бұрын
8:33 @Matt, that's kinda what programming feels like too! The satisfaction of your watching your theory autonomously running, and correctly... Bliss!
@Zephyrio
@Zephyrio 6 жыл бұрын
I remember in elementary school, thinking myself pretty good at the tic-tac-toe. But then a friend beat me with a corner starting move. I was quite amazed and have played with a corner starting move ever since. I'm surprised at the disparity between greens and blues in the starting box. Corner move is pretty awesome...
@mage3690
@mage3690 9 ай бұрын
Corner move is a very specific way to win that requires you to pick a specific corner relative to your starting corner in the second round. This is one of those "local minima" problems that crops up an awful lot in machine learning, and it's why you need very specific reward structures to teach the machine right. In this case, it doesn't make the reward structure particularly more difficult: you just need to punish it for picking center. But the problem expands exponentially, just like any problem involving decision trees not reduced by real intelligence.
@souravzzz
@souravzzz 6 жыл бұрын
The one dislike is from the person who lost to MENACE.
@thesuomi8550
@thesuomi8550 6 жыл бұрын
U Wot M8 now there are 7 of them
@thesuomi8550
@thesuomi8550 6 жыл бұрын
MENACE is getting better
@matthewwriter9539
@matthewwriter9539 5 жыл бұрын
As of Dec 26, 2018 it is 92 dislikes.
@minecraftermad
@minecraftermad 5 жыл бұрын
@@matthewwriter9539 ppl suck at tic tac toe lmao
@Coen80
@Coen80 6 жыл бұрын
favorite channel. keep up the good work. really love the mix of humour and information!
@Laceykat66
@Laceykat66 5 жыл бұрын
Back in the 1960s Reader's Digest had a "Book of Adventures" that had stories, puzzles, games and activities, all in hard bound. One of the activities was building a "computer" that would play "Hex-a-pawn." This was a game that used the nine square board (3x3) and three pawns on each side. The paws moved as traditionally and the object was to get your color in your opponent's home row. Like this experiment, you had matchboxes with the various board configurations on them and inside were colored beads to indicate the move. I came across this book in the 1970s (computers were becoming more of a reality by then) and spent a snowed-in weekend building the "machine" and playing the game. It was a lot of fun and taught me how programmes worked (basic anyway) and how a computer CAN make a mistake.
@SchutzmarkeGMBH
@SchutzmarkeGMBH 6 жыл бұрын
I love that it can die out. The way to win is not to play at all.
@keithkrummel9344
@keithkrummel9344 6 жыл бұрын
kzbin.info/www/bejne/bHWqf42km7CMpLc
@chinareds54
@chinareds54 6 жыл бұрын
How many matchboxes would be needed to learn Global Thermonuclear War?
@Kaiwala
@Kaiwala 6 жыл бұрын
And how much would it cost to buy enough for the nuclear winter DLC by EA?
@jaewok5G
@jaewok5G 6 жыл бұрын
settle down, joshua
@tranl1050
@tranl1050 6 жыл бұрын
ONE OF My MOST FAVOURITE VIDEOS ON KZbin
@therealzilch
@therealzilch 5 жыл бұрын
What a wonderful idea! And very engagingly done! Kudos on all concerned.
@MNalias
@MNalias 6 жыл бұрын
I feel like this is the machine that KZbin uses for there adbot.
@oledakaajel
@oledakaajel 6 жыл бұрын
Nah. This is too advanced.
@anjopag31
@anjopag31 6 жыл бұрын
Probably does use something similar. Inputs are what you like, a few hidden layers perform calculations, and then the output is the type of ad. Your feedback rewards or punishes the network.
@MrGeocidal
@MrGeocidal 5 жыл бұрын
Machine learning only works when it makes mistakes. Google is unaware of that fact.
@benadians1769
@benadians1769 4 жыл бұрын
@@MrGeocidal when was the last time you rated an ad?
@trobin
@trobin 6 жыл бұрын
Thanks for the vid
@standupmaths
@standupmaths 6 жыл бұрын
+Starrgate Thanks for watching!
@pannegoleyn9734
@pannegoleyn9734 2 жыл бұрын
I love this! When I was 9 or 10, I got a copy of Martin Gardner's "Mathematical Carnival", which contains his piece about matchbox computers, and I was absolutely fascinated by it, though I never tried to build one. Forty-something years on, it still sticks in my memory -- I know exactly where I was (in a dinner queue at school) when I read it! It's great to see it in action. (Actually, I've been mourning for that book, unable to find it for years, and it's been out of print. Happily, a couple of years ago, an ex-colleague from my first job met my ex-partner, and returned it -- apparently I lent it to him sometime in the early 90s -- and I've very happily re-read it quite recently 🙂 )
@mojitomaker
@mojitomaker 5 жыл бұрын
Brilliant demonstration Matt. 👍🏻
@badlydrawnturtle8484
@badlydrawnturtle8484 6 жыл бұрын
“I am now joined by the guy who's fault it is!” This is the reason I follow you. Well, that and computers made of matchboxes.
@entropyzero5588
@entropyzero5588 6 жыл бұрын
I might have missed this in the video, but I think an important thing to mention is that the initial state of the boxes _isn't_ one bead of every possible colour, but instead 8 each in the first box, 4 for the second moves, 2 for the third and one each in the rest (something which isn't even covered in the blogpost in the description…). The way Matt explained the setup would have a high likelihood very quickly dying out…
@pineapplegodguy
@pineapplegodguy 9 ай бұрын
Yeah... nice catch
@serhancinar5218
@serhancinar5218 6 жыл бұрын
I feel quite strange that how much I find this video very entertaining. Excellent work!..
@prestont1007
@prestont1007 6 жыл бұрын
This is great matt. Nice job
@standupmaths
@standupmaths 6 жыл бұрын
+Preston T Thanks! I’m very proud of this video.
@spinnwebe_
@spinnwebe_ 6 жыл бұрын
Oh my god I was at the museum last week! I practically could’ve run into you!
@Alex2Buzz
@Alex2Buzz 6 жыл бұрын
"It's learned to resign on the first move." So basically, all it's learned in that case is that it's bad at noughts and crosses.
@thelbmethod7956
@thelbmethod7956 6 жыл бұрын
Love this channel
@benjamins2683
@benjamins2683 6 жыл бұрын
Hey Matt I wrote a programm in c# which simulates your matchbox MENACE. Its mostly a replica of the matchboxes but I made some adjustments like a lower bound on how many different beed from each color stay in the boxes so that it cant die. I also added an auto-learn function where MENACE playes against himself and learns that way.
@utl94
@utl94 6 жыл бұрын
8:32 "This must be what procreating feel like." Lol.
@matterwiz1689
@matterwiz1689 6 жыл бұрын
Classic mathematitian
@KoneSkirata
@KoneSkirata 6 жыл бұрын
Pretty sure he said "proof-creating" :'D
@npc6817
@npc6817 4 жыл бұрын
when you've gone too far down the nerd hole you start referring to your machine learning algorithms as "your babies"
@Izandaia
@Izandaia 6 жыл бұрын
Now that Matt Scroggs "has" this contraption... He can't be blocked except by two or more creatures.
@untitled6087
@untitled6087 6 жыл бұрын
What is this, some kind of _magic?_ What would a _gathering_ of matchboxes do to help him with that?
@cristinaalexe7454
@cristinaalexe7454 2 жыл бұрын
This is brilliant, both the principle and its use at a science festival!
@ajreukgjdi94
@ajreukgjdi94 6 жыл бұрын
Inspired by this and a previous video, in a fit on boredom, i programmed a bot to play Nim and let it go second 300 times against a perfect opponent, and the only reason it wasn't infallable is because i wouldn't let the probability of any move drop to 0. But with only 11 possible board states, it made for a very easy introduction into learning programs vs. trying to teach it 300-some board states and how to recognize reflections and rotations.
@partynchill6455
@partynchill6455 5 жыл бұрын
From now on Ill be counting things in "metric universes" xD
@RaiCar1005
@RaiCar1005 6 жыл бұрын
Don’t beat yourself up about it. Tic Tac boxes are transparent
@Zero-ks3pc
@Zero-ks3pc 6 жыл бұрын
Rai Car but they can be shaken up and the piece delivered without human influence, not to mention a bit of tape could cover the clear bits. The bigger issue would be size limitation as it would fill up quickly and as it approaches its limit the ability for the pieces to move freely and any piece be equally possible begins to drop to almost zero.
@half_pixel
@half_pixel 6 жыл бұрын
Love the music in this one!
@NoIce33
@NoIce33 5 жыл бұрын
Ages ago I found a description of a similar learning pile of matchboxes from an old Soviet-time puzzle book. That game was different (a breakthrough of pawns on a 3x3 cheassboard), but it inspired me to make a tic-tac-toe version. I took rotations and reflections into account and didn't need that many boxes (only about 20, don't remember how many exactly); I also used a simpler algorithm where nothing was added, only in case of loss the last move indicator was removed (and if this emptied a box then the used move indicator from the previous box et c.). The simpler algorithm was, of course, worse, because it didn't distinguish between wins and draws (this feature was carried over from the original pawn game where draws were not possible), so in the end my fully trained machine mindlessly cruised into draw even in winning position. I think I grew bored before coming up with the idea of rewarding wins by adding indicators. A slight problem with this algorithm seems to be that it quickly becomes a fan of lines that have brought success. I don't think that corner opening is any worse than centre opening; one might say it is better (because it only leaves the opponent one non-losing move, while the centre opening leaves four in a way), but MENACE apparantly happened to score its first win or two with centre opening and this filled the opening matchbox with green beads, after which it, of course, started to open with centre move and kept scoring its wins with that, and so it snowballed.
@mage3690
@mage3690 9 ай бұрын
The path to victory in corner move first is much more narrow than center move as well, though. The first move reduces the second move to one possibility as well, so both you and your opponent are stuck with one winning move on corner move. It's actually a fantastic example of a local minima, and it's why ML models need good reward systems to achieve the right outcome.
@charlotte1924
@charlotte1924 6 жыл бұрын
How many match boxes would it need to learn how to play Mario?
@AtlasReburdened
@AtlasReburdened 6 жыл бұрын
At most, the number of pixels to the power of the number of colors to the power of the number of degrees of freedom the player has to the power of the number of possible in game coodinates, or roundabouts.
@theleftuprightatsoldierfield
@theleftuprightatsoldierfield 6 жыл бұрын
Atlas WalkedAway in other words, a big-ass number
@OriginalPiMan
@OriginalPiMan 6 жыл бұрын
Functionally (but not literally) infinite.
@LexanPanda
@LexanPanda 6 жыл бұрын
One step at a time. We need to get command blocks playing MarI/O first.
@binaryteddybear8741
@binaryteddybear8741 6 жыл бұрын
Atlas WalkedAway well, there is only one speed in Mario, right? You could divide it up in to steps, that would make it almost feasible
@badelementofstyle5238
@badelementofstyle5238 4 жыл бұрын
It seems like a little part of you died when you called it "Tic Tac Toe"
@koenbobeldijk
@koenbobeldijk 6 жыл бұрын
Was watching old QI episodes and saw you, cool to see you on my favorite program
@rebeccaanne3083
@rebeccaanne3083 5 жыл бұрын
This is wonderful!
@danielleanderson6371
@danielleanderson6371 6 жыл бұрын
The irony of it honing in on center moves is that if you know what you're doing, corners are much better, but I doubt this thing is capable of thinking ahead, since a poorly-played corner game is much more likely to lose than any center game.
@madhuragrawal5685
@madhuragrawal5685 6 жыл бұрын
That's not actually true, is it? Is there some way for us to play multiplayer tic tac Toe online so we can talk about this?
@Ecl1psed276
@Ecl1psed276 6 жыл бұрын
Actually I believe Danielle was right. If you start in a corner, your opponent had better play in the center, otherwise you can always beat them if you play correctly. Lots of people don't know that, so you can often beat people by going in the corner. If you start in a center, your opponent had better play in the corner. This is more widely known by most people, so you are more likely to end up with a draw in this case. And finally, just don't start on the side. It is possible to win in this case, but you probably won't unless your opponent makes a dumb move or something like that.
@computerfis
@computerfis 6 жыл бұрын
puzzling.stackexchange.com/questions/30/what-is-the-optimal-first-move-in-tic-tac-toe
@AshleyFrankland
@AshleyFrankland 6 жыл бұрын
MENACE works on a natural selection type system, so given enough opportunity it would eventually be able to avoid losing to a strong corner game.
@ljfaag
@ljfaag 6 жыл бұрын
But it has the first move, so it probably won't find that strategy
@guilhermekobori3155
@guilhermekobori3155 6 жыл бұрын
Is there a reasoning behind the rewarding distribution being +3 win, +1 draw and -1 loss?
@gordonrichardson2972
@gordonrichardson2972 6 жыл бұрын
Guilherme Kobori I've seen that ratio in other simulations. Its probably the smallest set of prime integers that converge nicely, without wild gyrations, or risk of dying prematurely.
@VFella
@VFella 3 жыл бұрын
I made one a lot of time ago. This is amazing as it demonstrates the very basics of what we call "Artificial Intelligence" or Machine Learning.
@fredg8328
@fredg8328 6 жыл бұрын
I saw this a long time ago in a french science magazine. Thank you very much to bring back this memory. I always thought it was from Von Neumann
@standupmaths
@standupmaths 6 жыл бұрын
+Fred G Glad I could remind you! Michie was the same era as Von Neumann but was over in Bletchley Park during WWII.
@MasterHigure
@MasterHigure 6 жыл бұрын
10:11 "Metric universes"
@Zero-ks3pc
@Zero-ks3pc 6 жыл бұрын
MasterHigure a ‘metric’ is a generic term for measurement, the ‘metric system’ is the standard units for a distance using meters. So you can have metric smoots, metric universes, metric Pomeranians and it is referring to the standard set by the companion word. Metric meters I guess would be more accurate but not necessary as it is the common use and when not speaking of it, you add the secondary defining word to define the standard you are using.
@boltstrikes429
@boltstrikes429 6 жыл бұрын
What a Parker square of a measurement unit
@CormacMacCormac
@CormacMacCormac 6 жыл бұрын
the only problem is every game of tic tac toe is a draw, unless one person is an idiot.
@ilya8914
@ilya8914 6 жыл бұрын
CormacMacCormac IKR
@minecraftermad
@minecraftermad 5 жыл бұрын
@@ilya8914 worst game ever... i play the infinte version tho with the one who has a 5 in a row wins
@garychap8384
@garychap8384 3 жыл бұрын
You know a person is an idiot if they don't : - place their opening mark in the corner when starting, or - or the centre when going second. Anything else, betrays a complete lack of strategy... The corner square IS the strongest _(the centre square is poisonous and prevents hidden forks)_ ... but almost nobody realises this. If you make a rule that nobody can take the centre until they have a mark on the board, then every game can be won by force.
@anandsuralkar2947
@anandsuralkar2947 2 жыл бұрын
true and thats why i dont even count it as a game its just game for kids when u grow up it seems useless
@ShortNecked_GreenGiraffe
@ShortNecked_GreenGiraffe 2 жыл бұрын
@@garychap8384 oh YES! i was hoping someone else realised! (idk but almost everyone i play with still plays the centre first it's annoying... haha i got bored once while waiting in the paediatrician back when i was 13 or something so i just started playing with myself)
@jjohn1234
@jjohn1234 5 жыл бұрын
Enjoyed it!
@nemianyamele2265
@nemianyamele2265 6 жыл бұрын
hey Matt!!! I Love your videos! I just wanted to let you know just a little bit of feedback that I had. I've watched every one of your videos on this channel, but today was the first time i had come across your second channel, (YAYYY MORE MATHS!!!) i feel like you ought to do more to advertise your second channel cos the content there is just as mad as the content you have here! People are missing out on some quality maths LIT-NESS!!!..... ... .... apart from that, your stuff is amazing (coz apart from maths, what else is?) Keep up the fun work! N.
@ge2719
@ge2719 6 жыл бұрын
if the first box runs out surely the solution is the put one of each bead back in and keep going?
@GEM4sta
@GEM4sta 6 жыл бұрын
Unsure of whether this would work, since you also removed beads further down the tree. I don't really want to think about it though.
@Benny_Blue
@Benny_Blue 6 жыл бұрын
GEM4sta And there might also be a halting problem here - how could it self diagnose to know what forfeits are justified, and what forfeits are not?
@youtubeuniversity3638
@youtubeuniversity3638 6 жыл бұрын
Simple: Forfeit means loss, so it shouldn't forfeit at any point.
@cmck362
@cmck362 6 жыл бұрын
By forfeit I think it's meant that there are no beads in the box. That indicates to the stack of matchboxes that all moves and their continuations are losing in that position therefore the game is lost. Basically a forfeit. If you relate that to chess it doesn't matter if it's a mate in 1 or a mate in 5. Either way the game is over so don't waste my time making me play out a formality. Basically you should resign/forfeit. At least then you can say that you saw the mate.
@eugenecbell
@eugenecbell 6 жыл бұрын
I have never seen anyone forfeit a game of Tick-Tack-Toe. I say never give up.
@kavigollamudi
@kavigollamudi 6 жыл бұрын
Not a Parker Pile of matchboxes then?
@Jakromha
@Jakromha 6 жыл бұрын
It kinda is, because it's playing centre instead of corner.
@owez08
@owez08 6 жыл бұрын
I'm glad a video about machine learning was finally able to tell me how it is programmed to learn, at least at a basic level. (I know I could have googled it but I couldn't be bothered most of the time that it came up)
@sagarramchandani3139
@sagarramchandani3139 6 жыл бұрын
Oooooo that is so cool! Keep up the good work
@siekensou77
@siekensou77 6 жыл бұрын
tic tac would have been more interesting esp cuz you can reward the winner with a tic tac
@RichardDamon
@RichardDamon 3 жыл бұрын
Yes, that was my thought, if the player won, let them have one of the tic tacs that was drawn.
@MrSimpsondennis
@MrSimpsondennis 6 жыл бұрын
but, if you start with 1-1-1 in each box, doesn't that completely erase an option upon losing? instead of just lowering the odds? Also, Menace going 2nd should result in more interesting results, since the opening move is a variable (humans don't always start center), so the countermove will have more variety and as such the result may vary more.
@damienporter5345
@damienporter5345 6 жыл бұрын
But only the last box contains just 1 of each bead. Which is fine as a loss from there should be discarded immediately. The ealier boxes contain multiple copies of each bead.
@joshuarosen6242
@joshuarosen6242 6 жыл бұрын
@Damien Porter While that would make perfect sense, did he say so? If so, I missed that bit.
@damienporter5345
@damienporter5345 6 жыл бұрын
Joshua Rosen I don't think he says it, but it is in the discription that he links to.
@joshuarosen6242
@joshuarosen6242 6 жыл бұрын
Damien Porter Which I didn't read. Thank you, I now shall.
@ThreeLetters3
@ThreeLetters3 6 жыл бұрын
Best thing I've ever watched, I gotta try doin this myself
@davidjackson2114
@davidjackson2114 6 жыл бұрын
Great fun, I did this at school at the end of the 1970's also inspired by the brilliant Martin Gardner :)
@harshzhoshi
@harshzhoshi 6 жыл бұрын
What happens if Menace plays Menace? Edit: Also, extremely sensitive to initial conditions!
@Toreno13
@Toreno13 6 жыл бұрын
I wouldn't call those matchboxes sentient. The matchboxes simply store the learned information, the one doing the learning here is actually the human using the matchboxes.
@standupmaths
@standupmaths 6 жыл бұрын
+Toreno13 What if a different human did each move for MENACE? They would not even have to be told why they are getting a bead and drawing a circle, just the steps to follow. Would you say the crowd of humans involved are learning even though no one person knew what they were doing?
@Toreno13
@Toreno13 6 жыл бұрын
standupmaths yes, with "humans doing the learning" I meant, that they are the process which is responsible for the distribution of colored beads in each matchbox in the end. Or the instructions themselves are the process that's doing the learning. Like for a processor executing instructions (itself not knowing what it's actually doing), and the memory (where the information of the matchboxes is stored), I wouldn't say that the memory is sentient, but the processor is doing the learning and storing the progress in memory.
@MrCmon113
@MrCmon113 5 жыл бұрын
I don't think this system is conscious, but your reason given is rather silly. Whether machine learning happens via metal wires or humans counting beads is irrelevant.
@ssrreevvaadd
@ssrreevvaadd 3 жыл бұрын
I would agree it’s not sentient. To me the term machine “learning” implies sentience as I suppose it does to most people outside of computer science. Industries have a tendency to develop their own terms as a way to raise the barrier of entry and it can lead to real miscommunication with the public at large.
@Kaixo
@Kaixo 6 жыл бұрын
Wow, this is, in a way, machine learning brought outside of the machine!! I am currently doing a project on Neural Networks for school and this fits so perfectly well with that project! It basically is machine learning! Love it, never thought it would be possible with matchboxes tho...
@owendeheer5893
@owendeheer5893 6 жыл бұрын
this looks amazing :)
@pkeshish
@pkeshish 6 жыл бұрын
HOW ABOUT A NICE GAME OF CHESS?
@gwenynorisu6883
@gwenynorisu6883 5 жыл бұрын
Horsey to King Prawn 4.
@jimmysuperchannel1527
@jimmysuperchannel1527 5 жыл бұрын
@@senik_8766 d5
@rohitraghunathan
@rohitraghunathan 6 жыл бұрын
8:32 "This must be what procreating feels like" Oh Matt! I pity your better half.
@thejunkman
@thejunkman 6 жыл бұрын
If math nerds don't have sex, how do we get more math nerds?
@Richard_is_cool
@Richard_is_cool 6 жыл бұрын
We get MENACE.
@ExistentialistDasein
@ExistentialistDasein 6 жыл бұрын
This video was wonderful.
@standupmaths
@standupmaths 6 жыл бұрын
+Existentialist Dasein Glad you enjoyed it! It was a lot of effort to make but I thought totally worth it.
@ExistentialistDasein
@ExistentialistDasein 6 жыл бұрын
Yeah, I've noticed that in your videos; you really do put an effort into making them. I also make videos from time to time (I'm a philosopher-nothing as cool as a mathematician), and I know how frustratingly tiresome the process can be:) By the way, I admire your enthusiasm about maths. I guess that's what motivates you to overcome the frustration involved in making the videos.
@Zalied
@Zalied 6 жыл бұрын
people knowing how to play and it being a solved game definitely makes it tougher. it would be interesting to see this sytem vs only children (people who almost never have strategy) or a version of itself that does the other side
@moogthedog2816
@moogthedog2816 6 жыл бұрын
"It's 10 to the 27 metric universes across?" What about the old imperial universes?
@alexwang982
@alexwang982 5 жыл бұрын
moogthedog *imperial March plays*
@MikeOxolong
@MikeOxolong 6 жыл бұрын
I thought, that the best way is to start with a corner.
@kalebbruwer
@kalebbruwer 6 жыл бұрын
Tazer Of you do it right, but it is very unlikely to stumble across it by chance. Watch 3blue1brown's videos on the topic.
@SuperGarryGamer
@SuperGarryGamer 5 жыл бұрын
I actually discovered it :D
@BrendanGuildea
@BrendanGuildea 6 жыл бұрын
Love it!!! Well done team! Link in the description... lol! Plan to come to Dublin?
@standupmaths
@standupmaths 6 жыл бұрын
+Brendan Niall Guildea I always have fun visiting Dublin and will be back one day! I’m sure Science Gallery would have me again.
@frankharr9466
@frankharr9466 6 жыл бұрын
For go, that is an insane number of boxes. That was so much fun!
@AlexiLaiho227
@AlexiLaiho227 6 жыл бұрын
really disappointed neither katie nor matt said "link in the dooblydoo"
@robertofontiglia4148
@robertofontiglia4148 6 жыл бұрын
"This must be what procreating feels like" -- Oh Matt...
@celia6598
@celia6598 6 жыл бұрын
I like your videos Matt!
@standupmaths
@standupmaths 6 жыл бұрын
+Celia I like your comments Celia!
@linga42
@linga42 3 жыл бұрын
It's the first time I've listened to drum 'n bass in 5 years. Thanks Stand-up Maths. I needed that.
@danjtitchener
@danjtitchener 6 жыл бұрын
So you wanted to make matchboxes learn to win noughts and crosses but it only learnt to draw? That's a real Parker Square of a machine learning routine...
@kellel5610
@kellel5610 5 жыл бұрын
Daniel Titchener tic tac toe is a sufficiently easy game that each player can force a draw or win provided that one of the players uses the best strategy
@MrCmon113
@MrCmon113 5 жыл бұрын
You cannot win. The game is so simple that a human without a severe mental disability will always force a draw, no matter how much more intelligent or skilled you are.
@gregorymaynard3089
@gregorymaynard3089 6 жыл бұрын
tic tacs learning tic tac toe tactics, has science gone too far?
@41-Haiku
@41-Haiku 6 жыл бұрын
I say it hasn't gone too far enough!
@squeakybunny2776
@squeakybunny2776 6 жыл бұрын
Tic tac toe tactics😄😄 oh man I love that
@jonasoffermartins9480
@jonasoffermartins9480 6 жыл бұрын
I've been watching a lot of content about machine learning in the last month and I never could have guessed match boxes could do it too. :D
@wjthomas8186
@wjthomas8186 6 жыл бұрын
I bought your book and I love it!
@standupmaths
@standupmaths 6 жыл бұрын
+WJ Thomas Glad you like it!
@wjthomas8186
@wjthomas8186 6 жыл бұрын
standupmaths I basically take it everywhere. I nearly screamed in excitement when it came in!
@unvergebeneid
@unvergebeneid 6 жыл бұрын
"This is what procreation must feel like." 😂😂😂 Wow, this is one of the saddest sentences I've ever heard!
@Parax77
@Parax77 6 жыл бұрын
"If the first box runs out, it has learnt to resign on the first move, and that is Bad......" BUT Wargames taught us that is the correct move! kzbin.info/www/bejne/bHWqf42km7CMpLc
@oz_jones
@oz_jones 6 жыл бұрын
*only winning move, not necessarily the best
@Grizzly01
@Grizzly01 3 жыл бұрын
0:25 Yay! Katie Steckles from the Puzzle Hunters on Only Connect!
@gubucker
@gubucker 6 жыл бұрын
really clever! congrats
@geogeo3644
@geogeo3644 6 жыл бұрын
To be honest this made me truly grasp neural networks. Thanks
@Marconius6
@Marconius6 6 жыл бұрын
This isn't really neural networks, I'm sorry to say. It's just basic learning where the machine is aware of all the possible states ahead of time, and just assigns values to them based on past experiences. Neural networks are kinda based on this idea, but a bit more abstracted; they don't look at individual game states, and there are multiple 'layers' that each process information in a different way, influenced by their previous layer.
@standupmaths
@standupmaths 6 жыл бұрын
+Geogeo 3 Glad I could help! Remember this is only a first-order approximation and actual neural networks are much more complicated. But nothing a lot of matchboxes couldn’t do.
@TakeoFR
@TakeoFR 6 жыл бұрын
That's close to Q-learning (with discount factor equal zero). A Neural network would be different.
@AashishNehete
@AashishNehete 6 жыл бұрын
Matt Parker for Doctor Who anyone?
@romainbornes22
@romainbornes22 6 жыл бұрын
Aashish Nehete yeeeeeeeeeeeeeesss.
@tostupidforname
@tostupidforname 6 жыл бұрын
nice Idea i think it is really good to explain the concept of machine learning
@aidanwansbrough7495
@aidanwansbrough7495 5 жыл бұрын
That's awesome!
@robertnorth5725
@robertnorth5725 6 жыл бұрын
SOOOOOOOOOO, ....... at the end of the match,the inanimate match wins the match!!?!?!?!?!?!?! That's MATCHLESS!!!!!!!!!!!!!!!!!!!!! (& menace says ; "YOU'VE MET YOUR MATCH!!!!!!!") hahaahaaaaa
@matthewg.6262
@matthewg.6262 6 жыл бұрын
I want all those matchboxes to be lit up at once. I feel like that would be so satisfying
@41-Haiku
@41-Haiku 6 жыл бұрын
But... no matches...
@Khronosian
@Khronosian 6 жыл бұрын
How would you decide which goes first, and the opening move?
@kyokkyuu
@kyokkyuu 6 жыл бұрын
There's a Mythbusters episode about that. Ended with them lighting 1 million match heads at once. I think you'll enjoy it.
@OneDerscoreOneder
@OneDerscoreOneder 6 жыл бұрын
Can a match box? No but a tin can
@rcb3921
@rcb3921 6 жыл бұрын
Link to the Mythbusters match-head bomb: kzbin.info/www/bejne/pqC5Z5-ZZ8djbZI
@stuartcoyle1626
@stuartcoyle1626 6 жыл бұрын
I remember doing this when I was a kid based on a Martin Gardiner article. Thanks for the memories.
@senshtatulo
@senshtatulo 6 жыл бұрын
I did the same thing.
@w0ttheh3ll
@w0ttheh3ll 6 жыл бұрын
AWESOME!
Day 2: Revenge of MENACE
17:47
Matt_Parker_2
Рет қаралды 122 М.
Matt & Hugh: the mystery of two balls in a can
10:06
Stand-up Maths
Рет қаралды 251 М.
Чай будешь? #чайбудешь
00:14
ПАРОДИИ НА ИЗВЕСТНЫЕ ТРЕКИ
Рет қаралды 2,3 МЛН
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 25 МЛН
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 20 МЛН
Robot Kinematics
19:39
MECHANICAL PROBLEMS
Рет қаралды 4
The Unbeatable Game from the 60s: Dr NIM
11:39
Stand-up Maths
Рет қаралды 7 МЛН
The Coriolis Effect Test: two hemispheres, one sink
15:25
Stand-up Maths
Рет қаралды 382 М.
Why do monkeys count in base-8?
7:26
Matt_Parker_2
Рет қаралды 29 М.
Recursive PowerPoint Presentations [Gone Fractal!]
14:47
Stand-up Maths
Рет қаралды 542 М.
Squaring Primes - Numberphile
13:48
Numberphile
Рет қаралды 1,6 МЛН
Matt Parker: Stand-up Maths Routine (about barcodes)
8:37
Stand-up Maths
Рет қаралды 615 М.
How thick is a three-sided coin?
14:53
Stand-up Maths
Рет қаралды 973 М.
The 'Everything' Formula - Numberphile
7:10
Numberphile
Рет қаралды 2,1 МЛН
Actually, Maybe There's Only 1 Game of Tic-Tac-Toe
11:58
Marc Evanstein / music․py
Рет қаралды 962 М.
Самый ХИТРЫЙ малыш!😂
1:00
Petr Savkin
Рет қаралды 4,3 МЛН
Ouch 😨 Use this tool to keep toothpicks safely
0:41
Cool Tool Shorts
Рет қаралды 23 МЛН
😨 СТАЛА ПИЛОТОМ НА 24 ЧАСА
0:36
Настя, это где?
Рет қаралды 7 МЛН
И кто победил: папа или сын? 🤪🏆✌️
0:24
НЕБО - СПОРТ И РАЗВЛЕЧЕНИЯ
Рет қаралды 2 МЛН