multi_phase.py 364 Bytes
Newer Older
liuzhe-lz's avatar
liuzhe-lz committed
1
2
3
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

4
5
6
7
8
9
import time
import nni

if __name__ == '__main__':
    for i in range(5):
        hyper_params = nni.get_next_parameter()
10
11
12
        print('hyper_params:[{}]'.format(hyper_params))
        if hyper_params is None:
            break
13
14
        nni.report_final_result(0.1*i)
        time.sleep(3)