7bd676c9ab6b23ec93499fd72aeadee3a334a163,skopt/utils.py,,normalize_dimensions,#Any#,443
Before Change
transformed_dims = []
for dim_type, dim in zip(dim_types, dimensions):
if isinstance(dim_type, Categorical):
transformed_dims.append(
check_dimension(dim, transform="onehot")
)
// To make sure that GP operates in the [0, 1] space
else:
transformed_dims.append(
check_dimension(dim, transform="normalize")
After Change
Real(dimension.low, dimension.high, dimension.prior,
transform="normalize")
)
elif isinstance (dimension, Integer):
transformed_dimensions.append(
Integer(dimension.low, dimension.high,
transform="normalize")
)
else:
raise RuntimeError("Unknown dimension type "
"(%s)" % type(dimension))
return Space(transformed_dimensions)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: scikit-optimize/scikit-optimize
Commit Name: 7bd676c9ab6b23ec93499fd72aeadee3a334a163
Time: 2017-08-18
Author: betatim@gmail.com
File Name: skopt/utils.py
Class Name:
Method Name: normalize_dimensions
Project Name: arogozhnikov/einops
Commit Name: 680f4831e6c8f3102be8d99056b746b48ce34051
Time: 2018-09-27
Author: iamfullofspam@gmail.com
File Name: einops.py
Class Name:
Method Name: reduce
Project Name: EpistasisLab/tpot
Commit Name: 990d954031a1121bc0b9ec1678c0b7db7cfaa374
Time: 2016-07-08
Author: supacoofoo@gmail.com
File Name: tpot/operators/base.py
Class Name: Operator
Method Name: parameter_types