Sowetrainedin a I to, uh, basicallyplayliketherandomwinners.
Andnowwe'rereadytodoistakeour A I theactualboughtthehell I boughtandhaveitplayaswhateverthedeeplearningclassifiersays.
Basically, basedontheinputinput.
So, uh, inordertodothat, let's goahead.
And, uh, I'm goingtocopy.
I guesswe'lljustcopymybyitwascopiedthisonecopypaste, andthen I'm gonnaleavethisonecalledjuststraightmyButmostlybecause, well, I'llbesubmittingitinthistutorial, so I justwantedithastobecalledmybody.
So, um, sowe'regonnadois, uhwe'regoingtoopenthisandrightaway.
Thisisonlygonnabeusedlocally, though, soitprobablydoesn't matterEitherway, I'm gonnaputithere, though I thinkthatmakesmostsenseanyway, whatthisisgonnado.
Themainissuehereiswewanttosetthememoryfraction.
Soifyouwanttorunlocally, umandyouwouldhavelikedto a eyescompetingagainsteachother.
Thiswillsay, eachday I canuse a 40% ofyourGPyouiswhat I usedtoSo I couldtrainto a eyescompetingagainsteachother, uh, andnotandthenalsostillusemycomputer.
Sobasically, itwasonlyusing 80% Butnormally, ifyoudidn't havethiscodehere, um, thefirst a I isgonnabasicallyloaditsmodel, andit's gonnaattempttouse 100% ofyourjeep.
YouIt's gonnaattempttouseallthatitcan, whichis a problematicwhenyouattempttoload a secondmodelhometothatGPU.
Uh, thisone's having a listindex I'd arrangedtoWhowouldbehitting?
Mmm.
It's reallyirritatingbecause I ranbothoftheseguysversuseachothernottoolongago.
So I knowthatthemyboughtoneworksthatworksorshouldwork.
Yep.
Sohowyougonnatellmethatdoesn't wanthowcometheybothhad a listintoexilerange?
Thatdoesn't makeanysense.
I appreciatethis.
Tryingtofilm a tutorialhere.
Okay, wait.
It's stillfromtensorflowimportsetsession.
Thisonehadjustranjustnow.
Whyisthatstillthat's nottheair.
Surelybecausewe'renotdoingthatanymore.
Did I leavethatimport?
I suredid.
Okay.
Okay.
Well, itworks.
Glory.
That's glory.
Allright.
So, Charles E.
I won.
Nomoreerrors.
Let's bringthisdown.
Let's goaheadandsubmitthatandseehowitlooks.
Er, isthisit?
Yeah.
Soreplaythefile.
Notwhat I intendedtodo.
Goback.
Comeon.
They'rereal.
So, Charlesoneis R A I isprettybrutal.
Seeyou.
Allright.
Notbad.
Notbad.
Lookslike a prettygood, eh?
I tome.
Okay, solet's saywe'rehappywiththat.
We'relike, OK, Yeah.
Good.
Let's pushthat.
Sowhat I'm goingtodonowislooksgood.
Sowhatchangeswouldweneedtomakefromhere?
So, firstofall, we'vealreadydonethatcaressbackandpart, sothat's not a problem.
Uh, theotherchangewewanttomakeisweneed a languagefile.
Letmepauseforonemoresecondtomakesure I getthisright.
Okay.
Sojustwantedtomakesure, butsoSowhatwehavehereisbasicallybecausemyboughtdotpieis a dotpie, butthelanguageismeanttobe, actuallymlbecausewe'reusing a machinelearningscriptinstead.
Um, sotopackagethisup, wealsowillwanttohave a gonnadeletethis.
Justcleanthisupsowecanseethingsbetter.
Um, wewannahave a filecalledLanguage, so I'm gonnacallthisallcapslanguage, andthenlet's openitup, uh, tosublime.
There's a lotofparametersthatyoucanchange, butactually 11 ofthe A I that I trainedonlyplayed 40 gamesandcutsupdownin 9 29 Obviously, that's just a bychanceprobably.
So, forexample, justtoshowyouaswell, um, Soyoucouldcompetenowlocally, againstyourselfwiththedatacreator, andthenusingeitherthepercentageshare, maybedotheayeAye.
Versusthe, uhum, thedefaultlikerandom, But, uh, I wantedtoshowyou a picture.
Notsureit's gonnahappen.
I can't seemtogetthisthepicture.
Likezoominwhen I zoominonthispage.
It's annoying.
Anyway, I justwantedtoshow a coupleexamples.
Sobasically, after I trained, um, youknow, withrandommodelsafter a littleover 5000 steps, obviouslytheyouknow, thesplitwasabout 50 50.
Andthenafter I trainedtheplayertoplay, um, youknow, versusitselfbasicallyarebasically, thisis a I versustherandombought, I guesstheway I won 66% ofthetimeafter 100 matches, sodefinitelyhadsomeimprovement.
Now, theotherthingtopayattentiontoislikethis.
Thismodelrightnowwastrainedonone V onematches, so I actuallyforgotaboutthat.
Sothat's probablywhywe'llprobablystayprettybadlyrankedbecauseit's reallyonlygoodagainstone V one.
Soprobablyifwegohere.
Um, let's seewhathedoes.
But I'm guessinghe's justtooaggressive, likeheprobablyforfeitshisposition.
Oh, ifyouonlytrainedonone V one, it's probablygonnacreate a prettyaggressiveAye.
Aye, Andtheseguysarenotevengood.
Comeon.
Anyway, um, that's allfornow.
Like I said, there's somanythingsthatwecanmodifyandchangeandworkonandallthat, Um, another, probablythebiggestoneisjustalsoincludeCemfourplayermatches, ifnotalwayshavefourplayermatchesorsomethinglikethat.
Andlike I said, oneoftheotherthings I wouldprobablydoisadd a fleaoption.
SomaybejustdoattackmineandfleeratherthandifferentiatedbetweenmindingourownplanetsandminingandemptyplanetJustmine a planetsomewhereAndlike, probablyminedtheclosest.