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

Before Change



        delete_list = []
        for param_name, param_distribution in search_space.items():
            if param_name not in trial.distributions:
                delete_list.append(param_name)
            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: 3

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: 7c7872a8c1511e81073275eda2ce31472a0399d0
Time: 2019-07-24
Author: phjgt308@gmail.com
File Name: optuna/samplers/__init__.py
Class Name:
Method Name: product_search_space


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__


Project Name: home-assistant/home-assistant
Commit Name: 6354399d55688a77359c78b3d9914d001208af7e
Time: 2016-04-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/automation/__init__.py
Class Name:
Method Name: _process_if