0ef17ad55a8d92903f648eaf02b25918a44ec4e1,tests/samplers_tests/test_partial_fixed.py,,test_params_identity,#,11

Before Change


        fixed_params={"y": -5}, base_sampler=RandomSampler(seed=42)
    )
    study_2.optimize(objective, n_trials=1)
    x_sampled_2 = study_2.trials[0].params["x"]
    y_sampled_2 = study_2.trials[0].params["y"]
    assert x_sampled_2 == x_sampled_0
    assert y_sampled_2 == -5

After Change



    // Fix parameter ``y`` as 0.
    study1 = optuna.create_study()
    with warnings.catch_warnings():
        warnings.simplefilter("ignore", optuna.exceptions.ExperimentalWarning)
        study1.sampler = PartialFixedSampler(
            fixed_params={"y": 0}, base_sampler=RandomSampler(seed=42)
        )
    study1.optimize(objective, n_trials=1)
    x_sampled1 = study1.trials[0].params["x"]
    y_sampled1 = study1.trials[0].params["y"]
    assert x_sampled1 == x_sampled0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pfnet/optuna
Commit Name: 0ef17ad55a8d92903f648eaf02b25918a44ec4e1
Time: 2020-10-30
Author: norihitoishida@gmail.com
File Name: tests/samplers_tests/test_partial_fixed.py
Class Name:
Method Name: test_params_identity


Project Name: theislab/scanpy
Commit Name: 7da447b4b42c4b214fc464deb3a3166a9bace7b2
Time: 2017-05-22
Author: f.alex.wolf@gmx.de
File Name: scanpy/preprocessing/simple.py
Class Name:
Method Name: filter_genes_dispersion


Project Name: theislab/scanpy
Commit Name: 6c1daba7448be72de84dec16a038fcaeda1636ad
Time: 2018-08-22
Author: 31883718+VolkerBergen@users.noreply.github.com
File Name: scanpy/preprocessing/simple.py
Class Name:
Method Name: normalize_per_cell


Project Name: pfnet/optuna
Commit Name: 0ef17ad55a8d92903f648eaf02b25918a44ec4e1
Time: 2020-10-30
Author: norihitoishida@gmail.com
File Name: tests/samplers_tests/test_partial_fixed.py
Class Name:
Method Name: test_params_identity