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 = 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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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: azavea/raster-vision
Commit Name: bc69e2385d53d76658df22bf6d012fd158af8cf2
Time: 2018-08-13
Author: jmcclain@azavea.com
File Name: src/rastervision/ml_tasks/semantic_segmentation.py
Class Name: SemanticSegmentation
Method Name: get_train_windows


Project Name: tensorflow/cleverhans
Commit Name: 4d9633c24908ab3a95158c29b5d14c32fff54dae
Time: 2020-01-07
Author: michaelshiyu3@gmail.com
File Name: cleverhans/future/torch/tests/test_attacks.py
Class Name: CommonAttackProperties
Method Name: setUp


Project Name: pymanopt/pymanopt
Commit Name: bd0f9dfdd22d3043daf8bd6bff010eee4a0d6975
Time: 2018-04-30
Author: niklas.koep@gmail.com
File Name: pymanopt/manifolds/product.py
Class Name: Product
Method Name: rand