1cee8b3b7b1b9b16afb7f5d6f12af2ca08907ee5,skopt/utils.py,,normalize_dimensions,#Any#,571

Before Change


    transformed_dimensions = []
    for dimension in space.dimensions:
        if isinstance(dimension, Categorical):
            transformed_dimensions.append(Categorical(dimension.categories,
                                                      dimension.prior,
                                                      name=dimension.name,
                                                      transform="normalize"))
        // To make sure that GP operates in the [0, 1] space
        elif isinstance(dimension, Real):
            transformed_dimensions.append(
                Real(dimension.low, dimension.high, dimension.prior,

After Change


        if isinstance(dimension, Dimension):
			// Change the transformer to normalize
			// and add it to the new transformed dimensions
            dimension.set_transformer("normalize")
            transformed_dimensions.append(
                dimension
            )
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 1cee8b3b7b1b9b16afb7f5d6f12af2ca08907ee5
Time: 2020-07-07
Author: georgesid95@gmail.com
File Name: skopt/utils.py
Class Name:
Method Name: normalize_dimensions


Project Name: scikit-optimize/scikit-optimize
Commit Name: ddca7f56ce7a154c2284d6464cf872a1f4992f3d
Time: 2020-02-20
Author: holgernahrstaedt@gmx.de
File Name: examples/sampler/initial-sampling-method.py
Class Name:
Method Name:


Project Name: scikit-optimize/scikit-optimize
Commit Name: ddca7f56ce7a154c2284d6464cf872a1f4992f3d
Time: 2020-02-20
Author: holgernahrstaedt@gmx.de
File Name: examples/sampler/initial-sampling-method-integer.py
Class Name:
Method Name: