Example #1
0
    def test_predict_log_proba_trained_trainable(self):
        from lale.lib.sklearn import BaggingClassifier

        clf = BaggingClassifier()
        clf.fit(self.X_train, self.y_train)
        with self.assertWarns(DeprecationWarning):
            clf.predict_log_proba(self.X_test)
Example #2
0
    def test_predict_log_proba_trainable(self):
        from lale.lib.sklearn import BaggingClassifier

        clf = BaggingClassifier(base_estimator=PCA() >> LogisticRegression())
        with self.assertRaises(ValueError):
            clf.predict_log_proba(self.X_test)