I run the following code `X, y = datasets.load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y)
pipeline = Pipeline([
("polyfeat", PolynomialFeatures(degree=2)),
("featselect", SelectKBest(f_classif, k=5)),
("classifier", H2OAutoMLClassifier(max_models=10, seed=seed,
sort_metric="aucpr"))
])
y_train = y_train.astype(np.bool)
pipeline.fit(X_train, y_train)
preds = pipeline.predict(X_test)
`
and encountered AttributeError: H2OAutoMLClassifier attribute 'predict_proba' is supported only for classification.
I run the following code `X, y = datasets.load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y)
pipeline = Pipeline([
("polyfeat", PolynomialFeatures(degree=2)),
("featselect", SelectKBest(f_classif, k=5)),
("classifier", H2OAutoMLClassifier(max_models=10, seed=seed,
sort_metric="aucpr"))
])
y_train = y_train.astype(np.bool)
pipeline.fit(X_train, y_train)
preds = pipeline.predict(X_test)
`
and encountered AttributeError: H2OAutoMLClassifier attribute 'predict_proba' is supported only for classification.