Skip to content

Shap values are not produced (parameters norm and vmin/vmax simultaneously is not supported) #551

@adrienpacifico

Description

@adrienpacifico

Hi,
Shap dependence plots are not produced anymore by mljar with a lightgbm model.
However, learner_fold_0_shap_summary.png and shap_importance.png are produced.

I get the following error message:

Exception while producing SHAP explanations. Passing parameters norm and vmin/vmax simultaneously is not supported. Please pass vmin/vmax directly to the norm when creating it.
Continuing ...

The code producing this error looks like the following:

automl = AutoML(
    mode='Explain',
    stack_models = True,
    algorithms=['LightGBM'],
    eval_metric="auc", 
    golden_features=False,
    total_time_limit=180,
    validation_strategy={"validation_type": "custom"},
    explain_level=2,
)


cv = [(train_indices, validation_indices)]

automl.fit(
    X,
    y,
    sample_weight = df.weight_discounting.values,
    cv=cv
)

Metadata

Metadata

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions