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):
                // Only do these
                if check.__name__ in ("check_estimator_sparse_data",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

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: BVLC/caffe
Commit Name: 96c2fe1de80c9752b992c4578a3ce46028d21fc5
Time: 2015-07-23
Author: jonlong@cs.berkeley.edu
File Name: python/caffe/net_spec.py
Class Name: Function
Method Name: _get_name


Project Name: has2k1/plotnine
Commit Name: a85342eee955a8630719678d96cd96e96cdcf6b2
Time: 2019-08-14
Author: has2k1@gmail.com
File Name: plotnine/geoms/annotation_stripes.py
Class Name: annotation_stripes
Method Name: __init__


Project Name: nilmtk/nilmtk
Commit Name: 82844481da6e1f3d391541d47af0c1466679f0f0
Time: 2014-07-11
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: __init__