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":
Italian Trulli
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: Ghadjeres/DeepBach
Commit Name: caf7f0ae508bd8a5212d0ed5a928ad667c57efd8
Time: 2017-07-12
Author: bohumir.zamecnik@gmail.com
File Name: data_utils.py
Class Name:
Method Name: generator_from_raw_dataset