3b60f1157530b1e6610f92766358bf0cf05a86d0,src/sdk/pynni/nni/metis_tuner/metis_tuner.py,MetisTuner,update_search_space,#MetisTuner#Any#,104
Before Change
self.x_types[idx] = "range_int"
else:
bounds = []
for value in np.arange(key_range[0], key_range[1], key_range[2]):
bounds.append(value)
self.x_bounds[idx] = bounds
self.x_types[idx] = "discrete_int"
After Change
self.x_types[idx] = "range_int"
else:
low, high, q = key_range
bounds = np.clip(np.arange(np.round(low/q), np.round(high/q)+1) * q, low, high)
self.x_bounds[idx] = bounds
self.x_types[idx] = "discrete_int"
elif key_type == "randint":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: microsoft/nni
Commit Name: 3b60f1157530b1e6610f92766358bf0cf05a86d0
Time: 2019-08-12
Author: suiguoxin@gmail.com
File Name: src/sdk/pynni/nni/metis_tuner/metis_tuner.py
Class Name: MetisTuner
Method Name: update_search_space
Project Name: microsoft/nni
Commit Name: 19173aa4370e36cba96ee7049eaaa0dceda5007c
Time: 2019-08-14
Author: suiguoxin@gmail.com
File Name: src/sdk/pynni/nni/metis_tuner/metis_tuner.py
Class Name: MetisTuner
Method Name: update_search_space
Project Name: keras-team/keras
Commit Name: 4db04d8701a64ee249dfe6ce09ebd89063bfb99c
Time: 2018-07-30
Author: me@taehoonlee.com
File Name: tests/keras/preprocessing/image_test.py
Class Name: TestImage
Method Name: test_image_data_generator