I'm thatbottomplayerandthenthetopisjust a pawnplaying a I thatwetrainedonabout 100,000 samplesstillcouldbebeatwiththesametactics, mostlybecausethisactualpunky I wastrainedbythecomputeritself.
Ithasn't reallydoneanyrandomizedlearning, so, like, reallyknow, likereinforcement, learningprinciplesoranythinglikethat.
Soreallyjustactsverysimilartohowthecomputerplayeracted, butitlearneditprettywell, actuallylearneduptoabout a littleover 80% accuracy.
Sowiththat, let's getintoit.
Wegot a donnastufftocover, but I thinkwe'llbeabletocoveritwithin a reasonableamountoftime.
So, again, justlikebefore, you'lldefinitelyneedthetextbasedversionstutorialbothtosaveyou a lotoftimeincoding, butalsoinjustdatacreation.
Allthat.
So, umwhat I'vedoneis 1st 5 alreadyhostedthetrainingdataitself.
So, um, thisisthedatahere, so?
Well, itwasitwasloaded.
Um, it's justit's a tonofdatais 100,000 samplesofexesandwise.
I don't knowwhy I disappeared.
Itwasalreadyloaded, butanywaysexists.
There's a linktoitinthetextbasedversions.
Tutorialjusthadtheiranddownloaded.
Well, howcome I can't clickonitoranyofthesethings?
Oh, mygoodness.
What's goingon?
Holdon.
Letmecloseouttheoutoftheirchrome.
Seeifthat's caughtwhat's happeninganyway.
Theyreallyarethere.
I promise.
IsmyInternetdeadorsomethingwasgoingon?
Am I stilltryingtoloadthatotherone?
Therewego.
Okay.
Everything's allright, guys.
I don't wanttobeworriedaboutme.
Allright?
Soanyways, um, while I havemostofthedata, ifyouwanttocheckouthowitwasdone, youcanThere's theJavascriptintheHTML, um, here.
Inthelasttutorial, someonewasmentioningthatifyoudon't specify a activationlayerinthetentsarefloodedJsatleastwiththecorps A no, thelayers A p I probablywill.
We'regoingtoTennesseepox, andwe'regonnabatchinsizesof 128 at a time.
Finally, wecanoutputandsavingallthat.
Wecouldgetthescoreoftheevaluationofthetestingdatathatoutofsampledataandthenwecansavethatmodelto a caressmodel.
Oncewe'vesavedthatmodel, weactuallycanconvertthat, um, to a tensorflowJsmodelwith a viewpipinstalltensorflowJsYoucouldmaketheconversionofallyourcaressmodelstomodelJason's.
Butmakesureyoudothat.
GoaheadandpipinstalltensorflowJs.
Butinstead, whatwe'regonnadoiswe'regonnagotothetopofourscriptandwe'rejustgoingtoimport 10thsirFlowJsas t f g s godsandthenwe'regonnacomedownhere, andyouyoumightwanttosaveyourContinuesavingyourmodel.
It's probably a goodideatokeepitsaved.
Um, butwe'realsogonna t f j s dotconvertersdotsavecaressmodelmodelandthen t f J s model.
I wanttoknowlikethisissavecaressmodellikeveryspecificallywonderhowifthere's a methodthatexistsfordoingum, fordoingjust a straighttensorflowmodel, letmejustgooglethisrookwithtensorflowJsdotconverters.
So I'm thinking, Isthissothereis a privateTFsavesavecaressmodelAh, butyoucandoitwithjust a straighttensorflowmodel.
Well, yeah.
So, actually, it's prettysimpletoconvert a lotofthem.
Umanyway, uh, what I didnotsee, though, it's Thisisthewrongone.
What I didn't seeis, likeTFlearnorsomethinglikethat.
It's mybestsolution I havetoofferyouguysrightnowis I willhostthemodel, and I willenablecrossoriginrequestson a differentdomain, notPythonperformingdotnetand, um, andyouguyscanstillcontinuetowork, atleastlocallyforthoseofyouwithout a anactualVPsorsomething.
Okay, solet's sayyouwanttousethis.
Sowhat I'm gonnadois I guesswe'llcomedowntoum, yeah, let's gotothetextbasedversiontutorialandjustgodowntothebottom.
Um, I don't reallythinkthatthere's muchbeenchangedlips.
Infact, whatwecandoiswecanuseponggamedothtmland I'm gonnacopypastaandthenpunky, I I thinkit's actuallyponggamedotJsYeah.
So, ponggamedotJs I'm gonnasavethat.
Comebackin a year, openupongamedotJsAndthen I'm gonnacopyandpastethiscodehoof.
It's a milelong.
Copy.
Pastasavescrollout a littlebit.
Um, howdo I getridofthis?
I see.
No, that's notwhat I want.
Isn't there?
Like, a clear I'm notblind.
Bill.
Resulthidepanel.
Thereitis.
Allright, sothen I'm a screwuptotheverytippytop, andhereyoucansee, youcanusethetheversionfrom h kinsleydotcom.
I justreallywantedtostressthatbeforeanybodywaslike, I don't wanttousehismodeltrainmyownmodel, andthentheytriedtraintheirownmodelandthencan't soOratleasttheycan't useit.