feat: impact × uncertainty signal map in the prospective demo - #7
Open
picaultj wants to merge 1 commit into
Open
feat: impact × uncertainty signal map in the prospective demo#7picaultj wants to merge 1 commit into
picaultj wants to merge 1 commit into
Conversation
Adds a foresight-style characterization of signals (issue rte-france#59, 'better characterize weak signals - axes impact vs uncertainty') to the signal-analysis view of the prospective demo. A heuristic, data-derived approach (no LLM call, works on existing models): - impact = normalized Latest_Popularity - uncertainty = 1 - normalized(evidence), evidence blending Docs_Count and Source_Diversity (a thinly-supported topic is more uncertain) Both axes min-max normalized across the model's signals. - New Streamlit-free helpers compute_signal_characterization() and plot_signal_characterization() (signal_characterization.py), unit-tested. - dashboard_signals renders the quadrant scatter in an expander (color by signal type, size by document count, median quadrant lines). - Added FR/EN translations.
picaultj
force-pushed
the
feat/signal-impact-uncertainty-map
branch
from
August 18, 2026 12:54
7515c4b to
4c3b0cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements "better characterize weak signals (axes impact vs. uncertainty)" — the fourth idea in upstream issue
rte-france/BERTrend#59— as a foresight-style signal map in the prospective demo's signal-analysis view.Approach (heuristic, data-derived)
The prospective demo loads signals from saved parquet files (scalar metrics only, no popularity time series), so both axes are derived from the metrics already present — no LLM call, no schema change, and it works retroactively on existing models:
Latest_Popularity(magnitude of attention)1 − normalized(evidence), where evidence blendsDocs_CountandSource_Diversity— a thinly-supported topic (few documents / few sources) is treated as more uncertainBoth axes are min-max normalized to
[0, 1]across the model's combined signal set. (A future upgrade could replace/augment these with LLM-scored impact — see the earlier design discussion; this PR is the low-risk first slice.)Changes
signal_characterization.py(new): Streamlit-free helperscompute_signal_characterization(dfs_topics)→ per-topic dataframe withimpact/uncertaintyplot_signal_characterization(char_df, ...)→ Plotly quadrant scatter (x=uncertainty, y=impact, color by signal type, size by document count, dashed median lines at 0.5)dashboard_signals.py: renders the map in an expander above the signal tables.i18n_translations.py: FR/EN strings (signal_map_title,signal_map_help,impact_axis,uncertainty_axis).tests/apps/test_signal_characterization.py(new): unit tests.Notes / limitations
Tests
tests/apps/test_signal_characterization.py: 9 passed — normalization bounds, higher-popularity→higher-impact, more-evidence→lower-uncertainty, signal-type labelling, constant-metric midpoint, missing-column handling, and figure construction.Generated by Claude Code