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
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
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: HazyResearch/fonduer
Commit Name: 0de3c091c75e36ffb4c12a2048110df37cafb644
Time: 2018-09-20
Author: lwhsiao@stanford.edu
File Name: src/fonduer/candidates/mentions.py
Class Name: Ngrams
Method Name: apply
Project Name: pantsbuild/pants
Commit Name: 991b6233b442369be2310ca58fbd7c4b93f72c89
Time: 2014-12-23
Author: tinystatemachine@gmail.com
File Name: src/python/pants/backend/core/tasks/what_changed.py
Class Name: WhatChanged
Method Name: console_output
Project Name: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/graph.py
Class Name: LegacyBuildGraph
Method Name: _inject_specs