Standalone HTML report with interactive chart

Aperta
#14 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
74/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
html, python

Direzione di ricerca

Start with the existing plot() implementation and the colour/marker conventions in plotting.py, then Explanation.to_dataframe() which supplies the table rows. Create the new report.py with Explanation.to_html(path=None) -> str, emitting an inline-SVG bar chart plus table, and add tests asserting feature names and values appear in the output for local, global and consensus cases. Done when the output has no external references, works offline, and the tests pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted

Context

plot() produces a static matplotlib figure. Stakeholders who receive explanations by email
or in a wiki benefit from a single self-contained HTML file with hover tooltips and a table
view.

Task

Add Explanation.to_html(path=None) -> str in a new report.py:

  • inline SVG bar chart (no external JS/CSS, must work offline and in restricted
    environments), positive/negative colours matching plotting.py, one marker shape per
    method for consensus explanations, hover tooltip with exact values,
  • the to_dataframe() table below the chart,
  • agreement sentence and metadata block,
  • light/dark via prefers-color-scheme.

Acceptance criteria

  • Output validates as HTML5, no network requests
  • Renders correctly for local, global and consensus explanations
  • Tests assert the presence of feature names and values in the output
Lingua principale
Python
Stelle
3
Fork
2
Merge medio
3g 23h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di adaumsilva/XAI-framework

Tutte le issue di adaumsilva/XAI-framework

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.