trial_choices.py 269 Bytes
Newer Older
chicm-ms's avatar
chicm-ms committed
1
2
3
4
5
6
7
8
9
10
11
12
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')