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)
def test_with_lale_pipeline(self): from lale.lib.sklearn import BaggingClassifier clf = BaggingClassifier(base_estimator=PCA() >> LogisticRegression()) trained = clf.fit(self.X_train, self.y_train) trained.predict(self.X_test)
def test_with_lale_classifiers(self): from lale.lib.sklearn import BaggingClassifier from lale.sklearn_compat import make_sklearn_compat clf = BaggingClassifier(base_estimator=LogisticRegression()) trained = clf.fit(self.X_train, self.y_train) trained.predict(self.X_test)