From aa581082b6bedbd01fee69c792fe96445306bbd7 Mon Sep 17 00:00:00 2001 From: xiexionghang Date: Tue, 27 Aug 2019 17:29:53 +0800 Subject: [PATCH] fix code style --- .../feed/scripts/create_programs.py | 12 +++++++++--- .../custom_trainer/feed/scripts/example.py | 2 +- .../train/custom_trainer/feed/scripts/join.py | 2 +- .../feed/scripts/model/join/main_program | Bin 75510 -> 73660 bytes .../feed/scripts/model/join/model.yaml | 3 +-- .../feed/scripts/model/join/startup_program | Bin 29839 -> 29136 bytes .../feed/scripts/model/join/test_program | Bin 33568 -> 32643 bytes .../feed/scripts/model/update/main_program | Bin 55859 -> 54527 bytes .../feed/scripts/model/update/model.yaml | 3 +-- .../feed/scripts/model/update/startup_program | Bin 19095 -> 18651 bytes .../feed/scripts/model/update/test_program | Bin 24098 -> 23432 bytes .../custom_trainer/feed/scripts/update.py | 2 +- 12 files changed, 14 insertions(+), 10 deletions(-) diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/create_programs.py b/paddle/fluid/train/custom_trainer/feed/scripts/create_programs.py index 396381ce..e1fad394 100644 --- a/paddle/fluid/train/custom_trainer/feed/scripts/create_programs.py +++ b/paddle/fluid/train/custom_trainer/feed/scripts/create_programs.py @@ -95,8 +95,14 @@ class ModelBuilder: main_program = fluid.Program() startup_program = fluid.Program() with fluid.program_guard(main_program, startup_program): - #TODO return dict maybe better ? - input_accessor, sparses, inputs, outputs, monitors = self._inference() + #input_accessor, sparses, inputs, outputs, monitors + inference_info = self._inference() + inputs = inference_info['inputs'] + outputs = inference_info['outputs'] + sparses = inference_info['sparses'] + monitors = inference_info['monitors'] + input_accessor = inference_info['accessors'] + test_program = main_program.clone(for_test=True) loss, labels = self._loss_function(*outputs) @@ -149,7 +155,7 @@ class ModelBuilder: 'loss': loss.name, 'input_accessor': input_accessor, 'monitor': monitors, - 'aa_Attention' : 'Do Not Modify This File Manually, Unless You Really Know It' + 'aa_Attention': 'Do Not Modify This File Manually, Unless You Really Know It' } with open(model_desc_path, 'w') as f: diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/example.py b/paddle/fluid/train/custom_trainer/feed/scripts/example.py index c06b53b3..54e1128f 100644 --- a/paddle/fluid/train/custom_trainer/feed/scripts/example.py +++ b/paddle/fluid/train/custom_trainer/feed/scripts/example.py @@ -32,7 +32,7 @@ def inference(): net = fluid.layers.fc(net, 128, act='relu', name='fc_7') ctr_output = fluid.layers.fc(net, 1, act='sigmoid', name='ctr') - return [], [], [cvm_input], [ctr_output], monitors + return {'accessors': [], 'monitors': [], 'sparses': [], 'inputs': [cvm_input], 'outputs': [ctr_output]} def loss_function(ctr_output): """ diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/join.py b/paddle/fluid/train/custom_trainer/feed/scripts/join.py index 1df4cf29..d3aeceb4 100644 --- a/paddle/fluid/train/custom_trainer/feed/scripts/join.py +++ b/paddle/fluid/train/custom_trainer/feed/scripts/join.py @@ -50,7 +50,7 @@ def inference(): { "name": "epoch_auc", "class": "AucMonitor", "target": ctr_output, "compute_interval": 600 }, { "name": "day_auc", "class": "AucMonitor", "target": ctr_output, "compute_interval": 86400 } ] - return accessors, [sparse_cvm], [cvm_input], [ctr_output], monitors + return {'accessors': accessors, 'monitors': monitors, 'sparses': [sparse_cvm], 'inputs': [cvm_input], 'outputs': [ctr_output]} def loss_function(ctr_output): """ diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/model/join/main_program b/paddle/fluid/train/custom_trainer/feed/scripts/model/join/main_program index 201006fe19658ec040ba7caeadc0a21a74743431..dd455fb1e9d6d8d46f8782b7813b82a3e7c2badc 100644 GIT binary patch delta 3377 zcmbW4ZAepL6vsJt!`z%xE8J)ZO(Q>4gpyf`AhZf9(?%ddT zROkbOfb62S(FS3h$!UWpOk|1jepW90Nfpy=;Kun}1`tdKzd$nI&d?3>A1UoqjE`^E zjEiL%z}q>+IabEq7%9*@pIO3NuXO&z?v>_Q=lKPU&JUGp0JL(}dF(HjwA92aXxQOgdYB91Nr1?+nNb;Y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1S+rMcSq)UH}xuZZ)9e9H~sc^bE;1JCAlh@9#J8a64V`iUeyziNoV`~p9>aUN%T0YG4m)Fdgy8u7)Mo$-m{?0RPZ%8BU zVS_`$!4)`)s>8d+!1A?+^;$i=A^WThEK>gQuzuPu2dhr+yQ!}}$?3A!cKRIXQ&`s$ Y$M}ICQuQ9e59!Tc{OUpJ!otk|12}6Y#{d8T diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/model/join/model.yaml b/paddle/fluid/train/custom_trainer/feed/scripts/model/join/model.yaml index 7b19ac93..e13df085 100644 --- a/paddle/fluid/train/custom_trainer/feed/scripts/model/join/model.yaml +++ b/paddle/fluid/train/custom_trainer/feed/scripts/model/join/model.yaml @@ -100,8 +100,7 @@ labels: shape: [-1, 1] loss: loss_ctr monitor: -- {class: AucMonitor, compute_interval: 3600, name: epoch_auc, target: ctr.tmp_2, - target_idx: 0} +- {class: AucMonitor, compute_interval: 600, name: epoch_auc, target: ctr.tmp_2, target_idx: 0} - {class: AucMonitor, compute_interval: 86400, name: day_auc, target: ctr.tmp_2, target_idx: 0} outputs: - name: ctr.tmp_2 diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/model/join/startup_program b/paddle/fluid/train/custom_trainer/feed/scripts/model/join/startup_program index 7109a2d4fd5c550d062d5e34d3cd0af84b2c39cf..3f0c50e77b41889f790d9c8001e43b7b275fc152 100644 GIT binary patch delta 1238 zcmeBw$#~&0BQw{D#~Ya~n3(SKOtxh*WIVgsz&ML#@=dlp#`wvGF3OCSlNSg}@uZ~| zrRF84#%JcGncSe`%V<8?k)x5Xi(80~i`l=lM2J1Pq-e6Cq8igX&dr9# zMvR-|#3Gm`H}Mc_TA@+KfRBS-S&+!8rvrH@>bqcg3*2G}uAzLK+u gXahj8$vwHIgr8aI6W8P~dDdV<9xxMa0LTSO07CkiNdN!< literal 29839 zcmeI5&u`;I6vvy*X4`ezZU~3%mIWDCsM%FXnqO^qMOLtfo)B<=BN|PdNn`5R#y{E= zgn9sp9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k%X}D zSbZW03&ZJK8iiCNEKDjah{paQz``2B!Wh8 zyf99@z!w!nUO-+zUYK}ZK#iU(UTD1bV}KXnD9j7-)-hh-tHUBMATJ;bIU~p+{5u(MsBt50#_MYLvTq2CY7wGqBx3jn%2AyUN|wEUdxb z3E-Q~@QXi!JL9ed=eR4ut2Z~H54hXwd$1J#n*Ji0zAp6n*tS9_%-F7TLE3emgfN%H zx;`k(7kImv6NLH8WO_je^YK05P?=GgQJII;;vStXTPlg&qEMMHs4}1Y$(+74GxZ4T C&%bH_ diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/model/join/test_program b/paddle/fluid/train/custom_trainer/feed/scripts/model/join/test_program index 51a84cf072d40d44de5e1bb2ae7624e853b2d251..6860dda25a06b7aadfdb4ceb97572ec21e9f19b3 100644 GIT binary patch delta 1602 zcmZ3`#?<_uk%jB`KgNwL>)05tOy11)hjHO%#_%4-%{H70jEwP<6D5@yEhm4}k>W{9 zElSNxPL0pZOUs`u=xxPhVKR9kzb~Wt?F}6-#&%KMW0ceIT(_{e= zKcbDuVO%~rMqo1IVf5PpWnmkn?*q;m)tsAjm8k?yD$?S z@$ir@w}3l6!ZMf8OQBOGKp(m;_>b(GX_D^D~K~Pw%af9?1+FgNGlG@f;0z~Q>)W1Cr#Sj z-tKlL*%4YKBs4cpNF2BU5{r;H@(noc0lok?z5qA&GW*nv?P|B%WHd?KW}dl>Q(ay4 zRCU#_o_|+$75VM2Zfxa>FUSA##r3!z*Et&ePM?jfL5YI&IF@DSNs)xfi#{`Gn3syRY&V(Bv)P zF0=qbwpbHegH{G9h^xlTRp=lu*)vm%lU6sPIHH|(=C(7@dOEyP7PezGyRK zD&Baw{^9q3@DqKT-13KJ;JcKKo5c%;SJPku$mzE^jhLkMI)o3(B|bRr57>=WyVhU0ts?#SuY z`++r}&-~z|Hayp>n(KH}GrEr&Rn74wQTGb=a>YezJy=sX1O z`q202-X3}K`IVXqbw>m9n7Tt6DAu-Hb8HQ0GzvT|q;9`9upG}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i*9wjz{GmjZ)&<1M=-66*FVe<@&2Uv2Fh`*q{qv*(K`I=8V(Lk&&S1U zyV*wh`y4Gb4ciVQ!#pmoJ^mr9C{HXKE9J(K=itVfh0iR{?Hw6zui+b=j*T0B|IOiF z(UIpiZ0isT$)8$%zY$sy1_ATf=;3hiOxKRBPNN%u0jFMYT=)CsnqpfnR@D6mdo{&! z6~p(j+tEEADez-NQ4k&+pBh0gtoLwKEz=Ts>V40}J3Hv{Zhj$Q z8?Gz((rmSD~g${R} z_F-7>npG&RDQ#7)DTWyxR03?rm6}4r@t{KHLj@Z8eAoeIfT5*9FNQ*s4_T9kv1NC3 z1EM7~PFTBinbQr^#9`#9)Qw4phO4_Xh5! z8=>y+Q^(0rQ=h3h5GLbh5p7S-p^bXpK2rX56A-FwP8`iE?wlo9SOB$)fDl54p2LFrDI@_^ zokUQrv`W^zGU%~FJ;Gr`pWQ?S0_$cxK=pHgLp+YjmfgM-Wnf9TeM zZJePH0Ogma z39lr)OHFtg?hg6l^9ZljhFvYd+a%%DB;i%&KzKO}i9nSgyi7t8-dE_wn&I>IXNzHC%pWC z`o&IoCDdNoWtx{Eyc{k?!pn*z;gy7!T#bCO3z2DH`AVMfN(fvi2own~$GFixl6~MH z5MKUige1I@@Gdjqg&WFn75xGTZ%Y#1c@SO>Ln2Tm2rrY6gjW(?NqFf8IL-N-@HQpX zF4FNv+LdMwmm=Y1MUwDJ!Yc{y#2xGxxza2laA65A$GFixk|hif2rv7DU0!LHSDKgk zN^?`YD8k#8gm)fw<@%Hj%Rg-sjJ{g$$GDf_5Ohn&#=eSLhcD*ML2H~tS+1Keks#d zEe;mRuXyM76|aQblx&4dkiF{PVcJp-s_F!cYNZ@s_bwuR)!#CG)#8Ar{F?WIzvh)t MxKvQMbuFLy4^ipHM*si- diff --git a/paddle/fluid/train/custom_trainer/feed/scripts/update.py b/paddle/fluid/train/custom_trainer/feed/scripts/update.py index 35aacda0..ec77ba16 100644 --- a/paddle/fluid/train/custom_trainer/feed/scripts/update.py +++ b/paddle/fluid/train/custom_trainer/feed/scripts/update.py @@ -43,7 +43,7 @@ def inference(): { "name": "day_auc", "class": "AucMonitor", "target": ctr_output, "compute_interval": 86400 } ] - return accessors, [sparse_cvm], [cvm_input], [ctr_output], monitors + return {'accessors': accessors, 'monitors': monitors, 'sparses': [sparse_cvm], 'inputs': [cvm_input], 'outputs': [ctr_output]} def loss_function(ctr_output): """ -- GitLab