Whatwe'regonnabedoingisbuildingonlasttutorialwhereweatleastgot a WebuilttheAyeaye, too.
Oratleastwebuilt a scripttopullfeaturesandjustplaythegamerandomlybetweenchoosingthreechoices.
Mine a planet, mindourownplanetAttackormine?
Emptyplanets.
Notinthatorder.
SoSowhatweneedtodonowisweneedtohave a waytotomakethesethesetwoplayersplayagainsteachother, Uh, andthenwe'regoingtosavethewinningplayersplaysandthey'rebasicallytheirfeatures.
Sotheiroutput, that's whatwewanttosave.
Sowe'vegotthecode.
Alldone.
Ah, butnowwhatwewanttodoisactuallycreate a scriptthatwilljustautomaticallyrunthem.
Thereshouldbenoreasonwhyoneissignificantlybetterthantheother, butthehopeisafterwetrainan A I thatthe a I hasbetterpercentagewentsotheway I shouldbebetterthanplayertwoorwhatever.
Let's sayifathe I wasplayerone, itshoulddobetterthan 50.
Um, youcanjustmainlydeletethem, orwhat I didwasAh, I justwrote a quickscriptthatwouldfindallthelogfilesanddothltfilesandjustbelievethem.
And I justcalleditcleanupthatpine.
I justdoubleclickitJustclearallthealltheflatsbecause, uh, you'd liketorunthisatleast 1000 times.
But, Holly, um, like, I don't know, 5000 timesorsomethinglikethattoget a goodamountoftrainingdata, soyou'llwindupwith a lotofreplayfiles.
Okay, Onceyou'vedone, um, I wouldsuggestyoudoatleast 100 games.
Hopefullyatleast 1000.
Andideally, I don't know, a few 1000.
Butonceyou'vegot a goodamountoftrainingdata, uh, like I sayatleast 100 beforeyoudothenexttutorial, I think, Ah, onceyou'vegot a goodamountoftrainingdata, wecanmoveon.
Andthenbasicallythis.
Sothistrain, whereareyou?
Hereyouare, Trainedfile.
Isthatinvolves?
No, thatisnotonthescreen.
Uh, sotrainitandkillme.
Let's dothis.
Okay.
Trainin, trainout, poppingallaround.
Butanyway, stillonscreen.
Sotrainingtrainout.
Asyoucansee, they'regrowingovertime.
Wecanjustopenthemrealquick.
Um, so, sofarforsampletrainingdata, we'vealreadygot 15,000 examplesdependingonhowquickyourcomputeris.
Thesematchescangofaster.
Slow.
Also, ifyouweretolike, I don't know, multiprocessthisorsomethinglikethatwassomesortoflockonthetrainandtrainout.
Ifthatdoesn't happen, uh, you'regonnabein a worldofhurt, somakesurethatthatisalwaysthecase.
Anyway, runthisfor a while, andthenwheneveryou'vegot a goodamountoftrainedit, I'llseeyouinthenexttutorialwhereweactuallybuild a Parismodeltotrainagainstthetraininandouttrainingmodeltohopefullypick a decentoutputvector.
So I willseetheirquestions.
What's goingon?
Subtitles and vocabulary
Click the word to look it upClick the word to find further inforamtion about it