Skip to content

Conversation

@Irozuku
Copy link
Collaborator

@Irozuku Irozuku commented Jan 28, 2026

Summary

Improves the robustness and user experience of explainer plots by adding proper loading and error feedback in the frontend, and fixes SHAP value shape handling in the backend to ensure consistent and correct explainer outputs.


Type of Change

Check all that apply like this [x]:

  • Backend change
  • Frontend change
  • CI / Workflow change
  • Build / Packaging change
  • Bug fix
  • Documentation

Changes (by file)

  • frontend/components/ExplainersPlot.tsx:
    Added loading (CircularProgress) and error UI states, improved useEffect logic to fetch plots only when the explainer status is valid, and prevented premature or unnecessary requests.
  • frontend/locales/en.json:
    Added a localized error message for explainer failures.
  • frontend/locales/es.json:
    Added the Spanish translation for the explainer failure error message.
  • backend/explainers/kernel_shap.py:
    Corrected SHAP value shape ordering to (n_instances, n_classes, n_features) using np.transpose instead of swapaxes to ensure compatibility.

Testing

  • Confirmed SHAP outputs have the expected shape and are correctly consumed by the frontend.

@Irozuku Irozuku added bug Something isn't working front Frontend work back Backend work labels Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

back Backend work bug Something isn't working front Frontend work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants