From a8259fdc7d5736d215aa246b38567d9c2f9560a5 Mon Sep 17 00:00:00 2001 From: HaoYizhi Date: Sat, 10 Jun 2023 19:02:43 +0800 Subject: [PATCH] damp prob removal first than sample --- __pycache__/firm.cpython-38.pyc | Bin 6893 -> 6893 bytes __pycache__/model.cpython-38.pyc | Bin 11784 -> 11831 bytes model.py | 6 ++---- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/__pycache__/firm.cpython-38.pyc b/__pycache__/firm.cpython-38.pyc index 3820ea3e24b7ef7d05e7711b2a5f4d44308c9604..c39ac4158dbbe2301a9250efcd21940b210e6987 100644 GIT binary patch delta 371 zcmaEB`qq>yl$V!_0SG3AZ{#v%XN=nHz~0Eh?G6+vQUwtnlh1G$GI~t5<9WvB1rgBV zjb`%!G5t1o^J+0NI!)fj=fE8d5(xkiE}I$o=Q1(6PJX~6GWj)^sbG;CNEq47pMo<4 zJkbRg3dM2yl$V!_0SLlFHgcJ=Gv35GWj)^sbG;iNEq47pMo<4 zywC*~3dM2srB+_D}-6yzVXd z(muf}>;6I@9VoP=+k{NlgXtjn(DhI{bdE3=Q|}O_W~m;o$?5QY=NHv|jSwrW6P;S& z3}tjdf;T?0spu|86*hMRt(xf(lDCGEPw;-=0xf-;&9flW_1 z$p&dqN_J_vn=4$_57q~A66BEe6q65f0N%+4sS}GhQ%yX$a+Orv7SX36M|VZLh9S5H zX`g8j?&jJohUT#Js0DHZpgt+e!#!Ut0rbaM8|V%o9G38`{jwa1KGz@>FZb%tvo_`j zP{AD;3is+?v5RuF+H8%Ng=R?;XvN2U0Mx4|S}^^{H(>&Ih|(`mO66A(CHHZ^K-uF= zThN-bfPc}bd$B~z8zn3dg?552T@RVZIdxvJLJeA@wyN~fq#ajI0==n3FEqVjg*n4R zHQGxmVIGF9Za)H?`63USCwQPnJ4lT(*P5~`8&{v!7A5Adw8IKbf64xxG8&oX9azb> zcRQ4mSd<;Pqj8@;ZA-54>NNDDX9v(?v?!@`LhUDcC-1~scIEOAi$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4BA7&*>ICKX_*=$_6al0X;Xq@o@Xv?CCjC+Fc5oz_dXZ!PmcqhYX`gxZP5p| z0sFdWzxfrZuGBpsS+-wCsx6wz(grj=CccjI3ZwNvv?Ko?E$=g(aJaK{4mg-ng5Jmj z!t6~!f7m+6`il}hzqFw=oI76`Z?O|*P+R(euvIC*aj? z?>^~DRIWU|wsuM2_<9>GuJHb*RE`;$Dyh4ScX$keRiSiNm*FM`;2A6r@c~hkiVnA@ zfiFHNifRa~Cd z<1Df7fQ}r4TO3E3eU8Vm$yYzFL!~1$6UJxV0X$xtBS$N2^61{4x~zI>!`tZhn;#FaOF5+5s|0^ zw~qMW+IRwncM5puVf&JJ-{UFKqjTClJ__UDv?*(g>on(pDFBtgQ_ymdp$+HS$f>c#xQlgJ&#ACTaG6Y8aY8lnfufydJ2Ef8dS?iJLvV)m|@+tSsnvA(Hh zcMNq~*FmY@269LZ{RS>}kd%;IN0PJT;RkfW`pNKTu_AovU7Tue=q0)#>z@K25FdqQ z>y44Wz3kyc>xaRP@0bR?!<4+lJq(^cl9%w4um2JD4BBBFx{wtLmc;IC66kVCcU!+b zaoX=*(kY(o2V&g`^;_ 1 else prob_remove prob_remove = 0 if prob_remove < 0 else prob_remove - # damp prod - prob_remove = prob_remove ** self.flt_diff_remove if self.nprandom.choice([True, False], p=[prob_remove, 1 - prob_remove]):