556eb9246d1290ea248f2e3b3581dc53e75b8061,sklearn/inspection/tests/test_plot_partial_dependence.py,,test_plot_partial_dependence_incorrent_num_axes,#,225

Before Change


                                   feature_names=boston.feature_names)

    with pytest.raises(ValueError, match=msg):
        disp.plot(ax=[ax1, ax2, ax3])


def test_plot_partial_dependence_with_same_axes(pyplot, clf_boston, boston):
    // The first call to plot_partial_dependence will create two new axes to

After Change


                                   grid_resolution=grid_resolution,
                                   feature_names=boston.feature_names)

    for ax_format in axes_formats:
        with pytest.raises(ValueError, match=msg):
            plot_partial_dependence(clf_boston, boston.data,
                                    ["CRIM", "ZN"],
                                    grid_resolution=grid_resolution,
                                    feature_names=boston.feature_names,
                                    ax=ax_format)

        // with axes object
        with pytest.raises(ValueError, match=msg):
            disp.plot(ax=ax_format)


def test_plot_partial_dependence_with_same_axes(pyplot, clf_boston, boston):
    // The first call to plot_partial_dependence will create two new axes to
    // place in the space of the passed in axes, which results in a total of
    // three axes in the figure.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-learn/scikit-learn
Commit Name: 556eb9246d1290ea248f2e3b3581dc53e75b8061
Time: 2019-12-19
Author: thomasjpfan@gmail.com
File Name: sklearn/inspection/tests/test_plot_partial_dependence.py
Class Name:
Method Name: test_plot_partial_dependence_incorrent_num_axes


Project Name: richzhang/colorization-pytorch
Commit Name: b0ddb103fd66542b0232718b1833ea7551c56f5e
Time: 2018-08-20
Author: rzhang88@gmail.com
File Name: test_sweep.py
Class Name:
Method Name:


Project Name: CNuge/kaggle-code
Commit Name: b7990885d8b26b9404fd9ce952b0b2f005019594
Time: 2018-01-12
Author: nugentc@uoguelph.ca
File Name: california_housing/feature_engineering.py
Class Name:
Method Name: