def test_mi(knn_methods): pool_classifiers, X_dsel, y_dsel, X_test, y_test = setup_classifiers() desmi = DESMI(pool_classifiers, alpha=0.9, knn_classifier=knn_methods) desmi.fit(X_dsel, y_dsel) assert np.isclose(desmi.score(X_test, y_test), 0.9787234042553191)
def test_mi(): pool_classifiers, X_dsel, y_dsel, X_test, y_test = setup_classifiers() desmi = DESMI(pool_classifiers, alpha=0.9) desmi.fit(X_dsel, y_dsel) assert np.isclose(desmi.score(X_test, y_test), 0.3500000000)