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


        if name == "kmodes":
            for check in _yield_all_checks(name, Estimator):
                // Skip these
                if check.__name__ not in ("check_clustering",
                                          "check_dtype_object"):
                    yield _named_check(check, name), name, Estimator
        elif name == "kprototypes":
            for check in _yield_all_checks(name, Estimator):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: theislab/scanpy
Commit Name: c5c2d65ebd3ee375fa9855c326d88646ee403aa7
Time: 2020-12-03
Author: fidel.ramirez@gmail.com
File Name: scanpy/get.py
Class Name:
Method Name: obs_df


Project Name: snorkel-team/snorkel
Commit Name: 283ecdfd495c8d5256c5ab07b470f36270d7f4a8
Time: 2017-07-22
Author: ajratner@gmail.com
File Name: snorkel/learning/gen_learning.py
Class Name: GenerativeModel
Method Name: train