ab34a307714c29f891382586224074d1f4ba7f9a,skopt/tests/test_space.py,,test_normalize,#,353
Before Change
assert_array_equal(X_orig, X)
a = Real(0, 1, transform="normalize", dtype=np.float64)
for i in range(50):
check_limits(a.rvs(random_state=i), 0, 1)
assert_array_equal(a.transformed_bounds, (0, 1))
X = np.float64(rng.rand())
// Check transformed values are in [0, 1]
After Change
assert isinstance(X_orig, float)
assert_array_equal(X_orig, X)
a = Real(0, 1, transform="normalize", dtype="float64")
X = np.float64(rng.rand())
// Check inverse transform
X_orig = a.inverse_transform(a.transform(X))
assert isinstance(X_orig, np.float64)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: scikit-optimize/scikit-optimize
Commit Name: ab34a307714c29f891382586224074d1f4ba7f9a
Time: 2020-02-01
Author: holgernahrstaedt@gmx.de
File Name: skopt/tests/test_space.py
Class Name:
Method Name: test_normalize
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: scikit-optimize/scikit-optimize
Commit Name: 45ffcc4d387da3e767ea675640f411dbea349ff0
Time: 2017-06-28
Author: iaroslav.email@gmail.com
File Name: skopt/wrappers/scikit_learn.py
Class Name:
Method Name: