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

add missing files #2210

Merged
merged 1 commit into from
Mar 21, 2020
Merged
Show file tree
Hide file tree
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
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')