You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
as_tree_sum(model, X): one entry point that reads LightGBM, XGBoost, CatBoost and
scikit-learn tree models (HistGradientBoostingClassifier, GradientBoostingClassifier, DecisionTreeClassifier) as a bettertrees sum with the same raw score (tested for
equality), so the whole interpretation API applies to them. Cuts that send missing
values right are refused when the feature has missing values in X; categorical
splits are refused.
Scorecard views on every sum: segments(X) (the data marked tree by tree: the rule of
each leaf and its points), profiles(X) (best, modal, median and worst client, observed
or the feasible extremes found by branch and bound, plus any clients chosen with rows=), plot_profiles(X), plot_trees() and plot_growth() (the order of the cuts:
the ITM records it while growing as growth_; boosters grow one tree after another). plot_trees(x) writes the client's value next to every cut on its path. Every plot
starts from the base, adds one leaf per tree in the same units and says in a legend line
what each mark means. Points in the credit convention (offset, pdo) or raw logit; bad chooses the class the score counts against and bad_label names it in the plots
(e.g. "default").