Skip to content

Commit

Permalink
Fix simplify (#767)
Browse files Browse the repository at this point in the history
* Update simplify.py

* Update simplify.py

Co-authored-by: Han Wang <amcadmus@gmail.com>
  • Loading branch information
HuangJiameng and amcadmus authored Jul 5, 2022
1 parent fd07f19 commit 25cb29f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dpgen/simplify/simplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ def post_model_devi(iter_index, jdata, mdata):
np.random.shuffle(idx)
pick_idx = idx[:iter_pick_number]
rest_idx = idx[iter_pick_number:]
dlog.info("total candidate {0:6d} picked {1:6d} ({2:6.2f} %) rest {3:6d} ({4:6.2f} % )".format\
if(counter['candidate'] == 0) :
dlog.info("no candidate")
else :
dlog.info("total candidate {0:6d} picked {1:6d} ({2:6.2f} %) rest {3:6d} ({4:6.2f} % )".format\
(counter['candidate'], len(pick_idx), float(len(pick_idx))/counter['candidate']*100., len(rest_idx), float(len(rest_idx))/counter['candidate']*100.))

# dump the picked candinate data
Expand Down

0 comments on commit 25cb29f

Please sign in to comment.