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
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
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: nerox8664/pytorch2keras
Commit Name: 1cf4c73059ba4435f37a93a316edbd426263cbf0
Time: 2018-12-20
Author: nerox8664@gmail.com
File Name: pytorch2keras/converter.py
Class Name:
Method Name: pytorch_to_keras
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: andresriancho/w3af
Commit Name: c08c98415395b76371581432be55381f0f6e2b40
Time: 2018-01-09
Author: andres.riancho@gmail.com
File Name: w3af/plugins/audit/format_string.py
Class Name: format_string
Method Name: _analyze_result