Skip to main content
Version: 25.4

snorkelflow.client.analyses.plot_feature_importance

snorkelflow.client.analyses.plot_feature_importance(node, model_uid, split='valid')

Generates a SHAP based summary plot.

note
This function requires these additional dependencies to be installed: shap, transformers, xgboost. They are pre-installed in the in-platform notebook server but may not be present in your own Python environment. Please make sure to have them installed. We’ve tested with shap==0.40.0, transformers==4.27.4, xgboost==1.1.0.

Parameters

NameTypeDefaultInfo
nodeintUID of the node.
model_uidintUID of the model to get important features for.
splitstr'valid'The split to get a visualization for.

Raises

NotSupportedException – For models other than LogReg and XGBoost.

Return type

None