7c7872a8c1511e81073275eda2ce31472a0399d0,optuna/samplers/__init__.py,,product_search_space,#Any#,13

Before Change


            elif trial.distributions[param_name] != param_distribution:
                delete_list.append(param_name)

        for param_name in delete_list:
            del search_space[param_name]

    return search_space or {}

After Change


        "Please use `intersection_search_space` function instead.", DeprecationWarning)

    logger = logging.get_logger(__name__)
    logger.warning("`product_search_space` function is deprecated. "
                   "Please use `intersection_search_space` function instead.")

    return intersection_search_space(study)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pfnet/optuna
Commit Name: 7c7872a8c1511e81073275eda2ce31472a0399d0
Time: 2019-07-24
Author: phjgt308@gmail.com
File Name: optuna/samplers/__init__.py
Class Name:
Method Name: product_search_space


Project Name: pfnet/optuna
Commit Name: fd633602af08b199d87d222a8cfb85acea17b55a
Time: 2019-09-11
Author: suehiro619@gmail.com
File Name: optuna/visualization.py
Class Name:
Method Name: _get_intermediate_plot


Project Name: open-mmlab/mmcv
Commit Name: 50a33950a4b23c614152696e6f979ae978233432
Time: 2020-10-14
Author: swanxinjiang@gmail.com
File Name: mmcv/runner/fp16_utils.py
Class Name:
Method Name: allreduce_grads


Project Name: allenai/allennlp
Commit Name: 40ec35876d38c4797ad3ee9bf911b019faa5a61d
Time: 2017-08-25
Author: mattg@allenai.org
File Name: allennlp/nn/initializers.py
Class Name: InitializerApplicator
Method Name: __call__