Sowiththat, we'regonnamake a coupleofimportshererealquick.
Importtensorflowas t f importKareaasDantebackenddottensorflowunderscoreBackendasbackendandthenfromthreadingwillimportcapital t threadingwiththoseimports, we'regonnagototheverybottom, andwe'regonnastartourmaindare.
I callit a loop, butreally, ifstatementif, uh, nameequalsDunder.
Soifthisisthescriptthat's running, we'regonnajustset, we'llsay F p s is 60.
Um, you'llseewhyin a momentwe'llwindup.
Probably.
There's gottobetweet.
ThisisAh, wewewishkindofnumber.
We'renotgonnaget 60 butanyway, uh, andthenyep, rewardswilljustprimethatwith a negative 200 tobegin.
Thattime I'm gettingover a cold, and I canthebrainisstill a bitfoggy, but, uhokay, Soforeverysingleepisode, we, umweatleastsetthesevalueswedoineveryset.
AndnowwestarttheactualwhileTrue, whichbasicallyiswow, notdonePrettymuchUm, butjustbecausethedoneflaggetstriggered, we'regonnado a coupleofthingsintheexitimmediately.
Sowe'reactuallyjustgoingto, like, wewanttodictateexactlywhereweexit s.
Soanyway, we'rejustgonnause a whiletrue.
Andthen, ifdoneat a specificpoint, webreak.
Sowhiletrue, if n p dotrandomdotrandomisgreaterthanwhatevertheEpsilonvaluecurrentlyis, we'regonnasayactionequalsNPDon't Argh, MaxAgent, getunderscorequeuesforthecurrentstate.
Sothewaythatyoucaneventuallyfigureoutwhatfriendspersecondyou'regettingisatleastwaituntilthe, uh, yourmemoryreplaysfilledupandyou'reactuallymakingpredictionsandthenhatlikesetyourAbsalontoelikezeroandthenreadyourfriendsfor a second.
Doneunderscorebecausewedon't have a valueforthatwheretheyenddotstepbasedonwhateveractionwedecidedtotakeEpisodeunderscorerewardplusequals, WhatevertherewardWaasThenwewanttoupdate.
Yes, I'm happywiththat.
Thankyou.
Look, wewanttoupdate, sowe'llsayagentdotupdatesunderscore a replayunderscorememory.
Masterofnone, a Sushantbird, a LanceCampbell, VincentSimoninLiamends B and a name I can't pronounce, butfeelfreetotellmeinthecommentsectionhowtopronouncethat.
Thankyouguysvery, verymuchforyoursupport.
Youguysareawesome.
Now, Willitworkthistime?
Probablynot.
I'm surewehaveothererrors.
I'm tryingtorecallalltheonesthatbecausesomebodywasfollowingalongin a, umnohasNo, actually, somebodywasfollowingalonginaniPod.
I thoughtnotebookandwaslikepostingtheerrorsinthediscordbecauseyouruneverycell, right?
Um M height.
Carendhasnoattributesinheight.
Whatdoyoumean?
Itdoesn't swear, doeshim?
Oh, it's underunderlowercasedpart.
Uh, I'm tryingtodecidehow I wannahandlethat.
Actually, um, I thinkthat's poppinguponthegetcues.