19173aa4370e36cba96ee7049eaaa0dceda5007c,src/sdk/pynni/nni/metis_tuner/metis_tuner.py,MetisTuner,update_search_space,#MetisTuner#Any#,104
Before Change
self.x_bounds[idx] = [key_range[0], key_range[1]]
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: Esri/raster-functions
Commit Name: e698c1f1bbab1691152743a4516cf574c406e391
Time: 2015-02-11
Author: jwasilkowski@esri.com
File Name: functions/LinearSpectralUnmixing.py
Class Name: LinearSpectralUnmixing
Method Name: updatePixels