583fbccfb801eeb02e4385d8ad8df62046678450,studio/optimizer_plugins/cmaes.py,Optimizer,__unpack_solution,#Optimizer#Any#,61

Before Change


        solution_dict = {}
        for i in xrange(len(solution)):
            name = self.itoname[i]
            solution_dict[name] = solution[i]
            solution_dict[name] = min(1.0, max(0.0, solution_dict[name]))
            solution_dict[name] = self.__unscale_var(solution_dict[name],
                self.bounds[i][0], self.bounds[i][1])
            if self.log_scale_dict[name]:
                solution_dict[name] = math.exp(solution_dict[name])

After Change


            if h.is_log:
                h.values = np.exp(h.values)
            if h.array_length is None:
                h.values = float(h.values)

        return self.hyperparameters

    def __pack_solution(self, hyperparam_dict):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


Project Name: automl/auto-sklearn
Commit Name: 98736e643f3e31e2eae5b12aa3946d2bf1b31b4f
Time: 2017-10-26
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/pipeline/components/regression/random_forest.py
Class Name: RandomForest
Method Name: iterative_fit


Project Name: CSAILVision/semantic-segmentation-pytorch
Commit Name: 6324799d51a451995a91b76306eae40ccd11f55e
Time: 2018-03-27
Author: jasonhsiao97@gmail.com
File Name: utils.py
Class Name:
Method Name: accuracy