Skip to content

'super' object has no attribute '__sklearn_tags__'  #789

@pplonski

Description

@pplonski

Error message when running below code

'super' object has no attribute '__sklearn_tags__'
Problem during computing permutation importance. Skipping ...

Code:

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions