6b8fd96888fd95e82e010837439a84a3e7487336,kmodes/tests/test_common.py,,test_non_meta_estimators,#,46

Before Change


    // input validation etc for non-meta estimators
    estimators = all_estimators()
    for name, Estimator in estimators:
        if name != "kprototypes":
            yield check_estimators_dtypes, name, Estimator
            yield check_fit_score_takes_y, name, Estimator

            // Check that all estimator yield informative messages when
            // trained on empty datasets
            yield check_estimators_empty_data_messages, name, Estimator

            yield check_pipeline_consistency, name, Estimator

            if name not in ["Imputer"]:
                // Test that all estimators check their input for NaN"s and infs
                yield check_estimators_nan_inf, name, Estimator

            yield check_estimators_overwrite_params, name, Estimator
        yield check_estimator_sparse_data, name, Estimator

After Change


                                          "check_dtype_object"):
                    yield _named_check(check, name), name, Estimator
        elif name == "kprototypes":
            for check in _yield_all_checks(name, Estimator):
                // Only do these
                if check.__name__ in ("check_estimator_sparse_data",
                                      "check_clusterer_compute_labels_predict",
                                      "check_estimators_partial_fit_n_features"):
                    yield _named_check(check, name), name, Estimator
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nicodv/kmodes
Commit Name: 6b8fd96888fd95e82e010837439a84a3e7487336
Time: 2016-10-16
Author: njdevos@gmail.com
File Name: kmodes/tests/test_common.py
Class Name:
Method Name: test_non_meta_estimators


Project Name: pandas-dev/pandas
Commit Name: 7368b2a4e8c6b32b975a62d64efb65bbd6bd1df1
Time: 2020-11-24
Author: 41443370+ivanovmg@users.noreply.github.com
File Name: pandas/io/formats/excel.py
Class Name: ExcelFormatter
Method Name: _format_hierarchical_rows


Project Name: pandas-dev/pandas
Commit Name: 7368b2a4e8c6b32b975a62d64efb65bbd6bd1df1
Time: 2020-11-24
Author: 41443370+ivanovmg@users.noreply.github.com
File Name: pandas/io/formats/excel.py
Class Name: ExcelFormatter
Method Name: _format_header_mi