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


                key_range = search_space[key]["_value"]
                idx = self.key_order.index(key)
                if key_type == "quniform":
                    if key_range[2] == 1 and key_range[0].is_integer() and key_range[1].is_integer():
                        self.x_bounds[idx] = [key_range[0], key_range[1]+1]
                        self.x_types[idx] = "range_int"
                    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: tgsmith61591/pmdarima
Commit Name: e1f347d15e8d70ed2ac6b27ca613f02a1797a57f
Time: 2019-08-26
Author: aaronreidsmith@gmail.com
File Name: etc/zapier.py
Class Name:
Method Name: millify


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