-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
Hello,
Here is the minimum repro:
file = pd.read_csv("country_full.csv", keep_default_na=False)
target = "name"
tabular_data = Tabular(
file,
feature_columns=file.columns,
categorical_columns = [column for column in file.columns if ((not is_numeric_dtype(file[column]) or len(set(file[column])) < 0.5*len(file[column])) and column!=target)],
target_column=target
)
explainer = DataAnalyzer(
explainers=["mutual"],
mode = "classification" if (not is_numeric_dtype(file[target]) or len(set(file[column])) < 0.5*len(file[target])) else "regression",
data=tabular_data
)
explanations = explainer.explain_global()For the file country_full.csv, this code throws the error:
ValueError: Found array with 0 sample(s) (shape=(0, 1)) while a minimum of 1 is required.
although there are many samples in the data.
Let me know if you need any other information from my part.
Metadata
Metadata
Assignees
Labels
No labels