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

Commit

Permalink
add missing files (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
chicm-ms authored Mar 21, 2020
1 parent 315b50a commit ee5b1b7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/config/naive_trial/search_space_choices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"p":
{
"_type" : "choice",
"_value" : [1, 2, 3, 4]
}
}
13 changes: 13 additions & 0 deletions test/config/naive_trial/trial_choices.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import random
import nni

if __name__ == '__main__':
print('trial start')

params = nni.get_next_parameter()
print('params:', params)

nni.report_intermediate_result(random.random())
nni.report_final_result(random.random())

print('trial done')

0 comments on commit ee5b1b7

Please sign in to comment.