You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromsupervised.automlimportAutoMLfromsklearn.datasetsimportload_irisfromsklearn.model_selectionimporttrain_test_split# Load iris datasetdata=load_iris()
X=data.datay=data.target# Split the dataset into train and test setsX_train, X_test, y_train, y_test=train_test_split(X, y, test_size=0.2, random_state=42)
# Initialize AutoML with default settings (Explain mode)automl=AutoML()
# Fit the modelautoml.fit(X_train, y_train)
# Make predictionspredictions=automl.predict(X_test)
# Evaluate the modelscore=automl.score(X_test, y_test)
predictions, score
Error message:
DecisionTreeAlgorithm should either be a classifier to be used with response_method=predict_proba or the response_method should be 'predict'. Got a regressor with response_method=predict_proba instead.
Problem during computing permutation importance. Skipping ...
2_DecisionTree logloss 0.587687 trained in 0.84 seconds
The text was updated successfully, but these errors were encountered:
Code to reproduce
Error message:
The text was updated successfully, but these errors were encountered: