Synthetic data: it comes from a known formula, so you can check whether the explanation gets it right (see the help).
600 rows · classification: the probability of «1»
It gets 84% right on rows it has not seen (92.4% on the training rows).
The model says:61.3%(actual: 1)
SHAP (exact, 1280 predictions)
From the average prediction to this row's, variable by variable:
LIME
A line that imitates the model near this row. Weight of each variable (green pushes up):
Fidelity (R² of the line near the row): 0.45, with 600 made-up rows.
SHAP and LIME rank the variables almost the same (ρ = 1).
What matters most overall
The average |SHAP| of each variable over 30 test rows.
In this data, «dia_nacimiento» has no influence at all in the formula that generated it: if its bar comes out almost empty, the explanation got it right.
Permutation importance
How much worse the model gets when each column is SHUFFLED in the chosen rows (which breaks its relationship with what is being predicted). The bar is the deviation over 5 shuffles. It measures what the variable contributes to being RIGHT; the mean |SHAP|, above, measures what moves the prediction.
If it comes out around 0 (or negative), shuffling it changes nothing: the model does not need it to get it right.
Can you trust its probabilities? Calibration
The test rows are grouped by the probability the model gave them (in steps of 10 %) and we check what fraction were actually positive. If it says 70 % and gets 7 out of 10 right, the point lies on the diagonal. The size of the point is how many rows there are.
Brier: 0.122 (0 is perfect; always saying 50 % gives 0.25) · calibration error (ECE): 9.4%
| Brier | ECE | |
|---|---|---|
| Not recalibrated (the 70 % one) | 0.115 | 13.4% |
| Platt | 0.108 | 9.7% |
| Isotonic | 0.107 | 4.6% |
Recalibrating needs rows the model hasn't seen: 30% of the training rows are set aside (135 rows), the same model is trained on the rest and the calibrator is fitted on the ones set aside. The table measures that model on the test rows. Platt fits an S-shaped curve (it suits boosting); isotonic assumes no shape, but with few rows it learns the noise (try a tree of depth 8). If it was already calibrated (regression), recalibrating adds nothing.
Points below the diagonal: it gives more probability than there really is (overestimates). Above: it falls short (underestimates). A single tree only gives a few different probabilities (those of its leaves); try “One tree” and “Regression”.