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_array_equal(X_orig, X)
a = Integer(2, 30, transform="normalize", dtype=int)
X = rng.randint(2, 31, dtype=int)
// Check inverse transform
X_orig = a.inverse_transform(a.transform(X))
assert isinstance(X_orig, int)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: keras-team/autokeras
Commit Name: bf1337afb8d75f0bbd8725c14830b8798bceb33e
Time: 2018-01-02
Author: jhfjhfj1@gmail.com
File Name: autokeras/net_transformer.py
Class Name:
Method Name: transform