6165fc267993ef3b58ca918f623a7e344729e6dd,optuna/importance/_fanova.py,,_get_distributions,#Any#,39

Before Change


    // It must be sorted because the corresponding `ConfigurationSpace` container depends on the
    // order and also sorts.

    distributions = {}  // type: Dict[str, BaseDistribution]

    for trial in trials:
        for name, distribution in trial.distributions.items():
            if name not in distributions:
                distributions[name] = distribution
            else:
                // TODO(hvy): Update low, high, choices, etc. to cover the entire search space.

After Change



    // Condtional hyperparameters are excluded here since we are taking the intersection.
    distributions = intersection_search_space(study)
    distributions = OrderedDict(sorted(distributions.items(), key=lambda x: x[0]))

    return distributions

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pfnet/optuna
Commit Name: 6165fc267993ef3b58ca918f623a7e344729e6dd
Time: 2020-02-27
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/importance/_fanova.py
Class Name:
Method Name: _get_distributions


Project Name: arviz-devs/arviz
Commit Name: 1849af144ec0a0497fb3f0fb18fe34e17277f700
Time: 2018-11-14
Author: ahartikainen@users.noreply.github.com
File Name: arviz/data/io_pystan.py
Class Name: PyStanConverter
Method Name: sample_stats_prior_to_xarray


Project Name: arviz-devs/arviz
Commit Name: 1849af144ec0a0497fb3f0fb18fe34e17277f700
Time: 2018-11-14
Author: ahartikainen@users.noreply.github.com
File Name: arviz/data/io_pystan.py
Class Name: PyStanConverter
Method Name: sample_stats_to_xarray