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

Before Change


        if trial.state != optuna.structs.TrialState.COMPLETE:
            continue

        if search_space is None:
            search_space = trial.distributions
            continue

        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


        "`product_search_space` function is deprecated. "
        "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: 6

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: pysb/pysb
Commit Name: c1d90eb24252a22bc1fde0f56b903ea599c9512e
Time: 2017-04-04
Author: alubbock@users.noreply.github.com
File Name: pysb/importers/sbml.py
Class Name:
Method Name: sbml_translator


Project Name: brian-team/brian2
Commit Name: 03e1f8ccf888e2b1c5ad37206d1fe172129aad4e
Time: 2018-03-20
Author: marcel.stimberg@inserm.fr
File Name: brian2/__init__.py
Class Name:
Method Name: