Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decision tree algorithm base class problem #788

Open
pplonski opened this issue Dec 31, 2024 · 0 comments
Open

decision tree algorithm base class problem #788

pplonski opened this issue Dec 31, 2024 · 0 comments
Assignees

Comments

@pplonski
Copy link
Contributor

Code to reproduce

from supervised.automl import AutoML
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split

# Load iris dataset
data = load_iris()
X = data.data
y = data.target

# Split the dataset into train and test sets
X_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 model
automl.fit(X_train, y_train)

# Make predictions
predictions = automl.predict(X_test)

# Evaluate the model
score = 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
@pplonski pplonski self-assigned this Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant