19173aa4370e36cba96ee7049eaaa0dceda5007c,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"
elif key_type == "randint":
self.x_bounds[idx] = [key_range[0], key_range[1]]
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":
self.x_bounds[idx] = [key_range[0], key_range[1]]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
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: 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: studioml/studio
Commit Name: 583fbccfb801eeb02e4385d8ad8df62046678450
Time: 2017-08-26
Author: jasonzliang@utexas.edu
File Name: studio/optimizer_plugins/cmaes.py
Class Name: Optimizer
Method Name: __unpack_solution