Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Refine doc and fix bug for testing MedianstopAssessor #1998

Merged
merged 5 commits into from
Feb 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/sdk/pynni/nni/medianstop_assessor/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def test():
# [1,1,1,1,1,1,1,1,1,1],
# [1,1,1,1,1,1,1,1,1,1]]

assessor = MedianstopAssessor(FLAGS.start_step, FLAGS.optimize_mode)
for i in range(4):
assessor = MedianstopAssessor(FLAGS.optimize_mode, FLAGS.start_step)
for i in range(len(lcs)):
#lc = []
to_complete = True
for k in range(10):
for k in range(len(lcs[0])):
#d = random.randint(i*100+0, i*100+100)
#lc.append(d)
ret = assessor.assess_trial(i, lcs[i][:k+1])
Expand Down