Open JeroenWalchenbach opened 5 months ago
hi @JeroenWalchenbach , your example is not reproducible. (X_train
, y_train
are not defined).
This works, for example:
import shap
import xgboost as xg
shap.initjs()
X_train, y_train = shap.datasets.adult(n_points=500)
model = xg.XGBRegressor()
model.fit(X_train, y_train)
explainer = shap.Explainer(model)
shap_values = explainer(X_train)
shap.plots.bar(shap_values)
So it probably has something to do with how your data is defined.
Issue Description
when using barplot function from shap a TypeError occurs when calling line 260 ax.set_yticks.
set_ticks has no attribute fontsize.
Minimal Reproducible Example
Traceback
Expected Behavior
No response
Bug report checklist
Installed Versions
0.45.1