From 8353dc13d007f84d117afbcd80ef40c71dfecdbe Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sat, 16 Apr 2022 12:32:16 +0200 Subject: [PATCH] Nicer prints when training --- brains/uttt.pth | Bin 15175 -> 15175 bytes vacuumDecay.py | 28 +++++++++++++++------------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/brains/uttt.pth b/brains/uttt.pth index 8bdb3f39bb9ca68d82b8afac4d2b0f47038fb64e..6ca002ea75f7da7aece33a46c53e742cde420b07 100644 GIT binary patch delta 7781 zcmYM3c~nl{_xLLf8bqZTO-chQl+-=@DkPDF1`$al>HR?@Kt1;TM1WzIUy&);{a5bM{&5?BVR!ZVYS;%o5{izUR?9LwBv>Z~TGw zfN|LQ?F;FXS0@(3FBsm7D(wFCk*Ig4lJs{kDFpg(J3E)sZ=Nb3GuH#njBJU0?O}3g zP#6BYHr~qERuRAD&c_meZSehQ#5AZWL27^){?^}2^*<~F#aK7E+gydiC=80%#c{PR zpGV9KBjA}v8EMwafE%S8{#R~HN1{bRZ?_kgJ|gg}ISn4ZdPSv_x6tXOpXt&W?MEGna_gB&-ur4SxzUx(yxBJi~3YXcPQyNv$nb+^ek0anTIYzyyY}=xC1sHa>cVM#xRd<$GyrEp{R$UI|g?{b7UV~ z?z9IUC~f03i==4pI(_InSxo)A0&&~)4X~u4i%vWtj9a{O;oWZ^3=!Pq&Plscb*n{W zLm7fo&jYf4i6~jIRATJuRZfPUV}ykMjulJChzbdf9V^7&H+Hdq+Nxlp{Bi`0PItf? zi5XPOV+{u9m}ByNdG5)gPAAPkKcY|J__HY^()t4 z!_9g4P!NH_A1@R4-V@}?yCj;FX-qU3Gx}G%=yE+rPoYum{KUDF`Sz0LJdMz64hiGd2Z|F9}JHjG4A~QtqO9tzp`+x13HrR0wg8 zQ@B|>I396auLvn7M_^U7JVaDH1UKRF7~8cL{&O*>3-yCZRU0MZ_YR}owoF=A5s6dR zoq!xg38+ttK&?mlu&=#|Hp!$wh139X*woD|K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3<0sTZbH%)!T@rlP(gPXpI|r{}Iur zj>2D0JMb0m0h7W(lATqF<=fTafb9=5x853()|?>{^(q)1oJ&>rT*3s!WW4lx5>y;9 z1np&pz?8kj=J%E;pO8+rG+7FJy`&&uaxO`mXvQO^_jkkFtUMaqvs$?SX#jM5kP+S5fkC# ze79~Ibt8qHtMLuPAEN6G_p3G)jz2~alnStw*M~vSg4c5XkfViV6oGEc& z#if4I*#&aUD0bgls@Sz2CG|JbuhUkss+xT4w=oBov8!2=bEdfEZ3>Z_e242j8pM8i z=fSodH$d24^0z6ZQ16q@_nP8prF77poO+x}9b(-f@RcRyGY`ml#YmE!l*@Sj8}YY? z6Sn=e<^LG$n^UG(l`JAcmq9h5e5D9GcWN>CZEXXC?jVTQnuK0^^#AhS`xMHX{6kfhEI--dp~Roo6hF+-QQ}XRh+i-Q{t)i`wh{1$HRo$OIZFIZnt>zW iPrl+G907lAzdZu}*u|G|c9i&|itj!G{z{H '+['O','X','No one '][self.head.getWinner()] + ' won!') return head def timelineIter(self, term): @@ -546,6 +544,8 @@ class Trainer(Runtime): inp = node.state.getTensor(player=p) gol = torch.tensor(node.getStrongFor(p), dtype=torch.float) out = model(inp) + if not out: + continue loss = loss_func(out, gol) optimizer.zero_grad() loss.backward() @@ -557,8 +557,9 @@ class Trainer(Runtime): break #print(loss_sum/i) if r > 16 and (loss_sum/i < cut or lLoss == loss_sum): - return + return loss_sum lLoss = loss_sum + return loss_sum def main(self, model=None, gens=1024, startGen=12): newModel = False @@ -568,7 +569,8 @@ class Trainer(Runtime): self.universe.scoreProvider = ['neural','naive'][newModel] for gen in range(startGen, startGen+gens): print('[#####] Gen '+str(gen)+' training:') - self.trainModel(model, calcDepth=min(5,3+int(gen/16)), exacity=int(gen/3+1)) + loss = self.trainModel(model, calcDepth=min(5,3+int(gen/16)), exacity=int(gen/3+1)) + print('[L] '+str(loss)) self.universe.scoreProvider = 'neural' self.saveModel(model)