Skip to content

Instantly share code, notes, and snippets.

@aswalin
Created May 22, 2019 00:47
Show Gist options
  • Save aswalin/388cf5827c88073851735ce995c5a0d6 to your computer and use it in GitHub Desktop.
Save aswalin/388cf5827c88073851735ce995c5a0d6 to your computer and use it in GitHub Desktop.
cb = CatBoostRegressor()
cb.get_feature_importance(type= "___")
"type" possible values:
- PredictionValuesChange
- LossFunctionChange
- FeatureImportance
PredictionValuesChange for non-ranking metrics and LossFunctionChange for ranking metrics
- ShapValues
Calculate SHAP Values for every object
- Interaction
Calculate pairwise score between every feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment