dd7433da068b5a2509ef4ea4e5195458393e6555,skopt/plots.py,,_map_bins,#Any#Any#Any#,263

Before Change



    if prior == "log-uniform":
        // Map the number of bins to a log-space for the dimension bounds.
        bins_mapped = np.logspace(*np.log10(bounds), bins)
    else:
        // Use the original number of bins.
        bins_mapped = bins

After Change


    if prior == "log-uniform":
        // Map the number of bins to a log-space for the dimension bounds.
        bounds_log = np.log10(bounds)
        bins_mapped = np.logspace(bounds_log[0], bounds_log[1], bins)

        // Note that Python 3.X supports the following, but not Python 2.7
        // bins_mapped = np.logspace(*np.log10(bounds), bins)
    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: dd7433da068b5a2509ef4ea4e5195458393e6555
Time: 2018-01-26
Author: magnus@hvass-labs.org
File Name: skopt/plots.py
Class Name:
Method Name: _map_bins


Project Name: scipy/scipy
Commit Name: 022ad077f8e1e0e3b51c7f60257642a1e2cc326c
Time: 2013-02-12
Author: kroeger.niklas@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: Test_freqresp
Method Name: test_05


Project Name: scipy/scipy
Commit Name: aac6bd04cfa2528ef09de6bf204d5a29151d904d
Time: 2013-02-11
Author: warren.weckesser@gmail.com
File Name: scipy/signal/tests/test_ltisys.py
Class Name: Test_bode
Method Name: test_05