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"

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]]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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: biocore/scikit-bio
Commit Name: 282b9832e01a3da654cce608a64f2d8a9e79ae51
Time: 2014-05-02
Author: jai.rideout@gmail.com
File Name: skbio/maths/diversity/alpha/base.py
Class Name:
Method Name: michaelis_menten_fit


Project Name: matplotlib/matplotlib
Commit Name: 64ac509a6cec89592c6140eebcd9058cb87044f0
Time: 2019-02-13
Author: elch.rz@ruetz-online.de
File Name: examples/statistics/barchart_demo.py
Class Name:
Method Name: