def test_deskl(): pool_classifiers, X_dsel, y_dsel, X_test, y_test = setup_classifiers() deskl = DESKL(pool_classifiers, DFP=True) deskl.fit(X_dsel, y_dsel) assert np.isclose(deskl.score(X_test, y_test), 0.90303030303030307)
def test_deskl(knn_methods): pool_classifiers, X_dsel, y_dsel, X_test, y_test = setup_classifiers() deskl = DESKL(pool_classifiers, knn_classifier=knn_methods) deskl.fit(X_dsel, y_dsel) assert np.isclose(deskl.score(X_test, y_test), 0.97340425531914898)