Repository Public MIT Research preview
1% CE01-F10 — Comparaison de cinq stratégies de compaction sur les mêmes longues sessions.2% Question : que perd chaque stratégie, et que coûte-t-elle, quand l'historique dépasse son budget ?3% DONNÉES : CE01-F10-donnees.tex — DONNÉES SYNTHÉTIQUES et RÉSUMEUR SIMULÉ (règles de perte énoncées dans4% labs/ce01/compaction.py) : 30 sessions de 60 tours, budget d'historique de 1 200 jetons.5% Idée : aucune stratégie ne domine ; ce que l'une garde, elle le paie en jetons relus ou en nuances perdues.6\input{CE01-F10-donnees.tex}%7\begin{tikzpicture}[x=1mm, y=1mm]8 \begin{axis}[atlas axis, scale only axis, at={(33mm,0)}, width=58mm, height=34mm, xbar, bar width=2.1mm, xmin=0, xmax=100,9 axis x line*=bottom, axis y line*=left, y axis line style={draw=none}, ytick style={draw=none}, ytick=data, y dir=reverse,10 symbolic y coords/.expand once=\CEFdixStrategies, yticklabel style={font=\AtlasSizeTiny, text=atlasFg, align=right},11 xmajorgrids, enlarge y limits={abs=3.2mm}, xtick={0,25,50,75,100},12 xlabel={part conservée en fin de session (\%)},13 nodes near coords, nodes near coords style={font=\AtlasTabularFont\AtlasSizeTiny, anchor=west, text=atlasFg},14 nodes near coords={\pgfmathprintnumber[fixed, precision=0]{\pgfplotspointmeta}},15 title={Ce qui reste}, title style={yshift=-1mm}]16 \edef\atlasplot{\noexpand\addplot[atlas bar valid, bar shift=-1.3mm] coordinates {\CEFdixImportance};}\atlasplot17 \edef\atlasplot{\noexpand\addplot[atlas bar muted, bar shift=1.3mm] coordinates {\CEFdixFaits};}\atlasplot18 \end{axis}19 \begin{axis}[atlas axis, scale only axis, at={(101mm,0)}, width=32mm, height=34mm, xbar, bar width=2.4mm, xmin=0, xmax=9,20 axis x line*=bottom, axis y line*=left, y axis line style={draw=none}, ytick style={draw=none}, ytick=data, y dir=reverse,21 symbolic y coords/.expand once=\CEFdixStrategies, yticklabels={}, xmajorgrids, enlarge y limits={abs=3.2mm}, xtick={0,3,6,9},22 xlabel={milliers de jetons relus},23 nodes near coords, nodes near coords style={font=\AtlasTabularFont\AtlasSizeTiny, anchor=west, text=atlasFg},24 nodes near coords={\pgfmathprintnumber[fixed, precision=1, use comma]{\pgfplotspointmeta}},25 title={Ce que cela coûte}, title style={yshift=-1mm}]26 \edef\atlasplot{\noexpand\addplot[atlas bar uncertain] coordinates {\CEFdixLus};}\atlasplot27 \end{axis}28 \node[atlas note, anchor=north west, align=left] at (0, -10.5) {\textcolor{atlasValid}{\rule{2.2mm}{2.2mm}} importance conservée\enspace \textcolor{atlasRule}{\rule{2.2mm}{2.2mm}} faits conservés\enspace \textcolor{atlasUncertain}{\rule{2.2mm}{2.2mm}} jetons relus par le résumeur};29 \node[ce nature, anchor=north east] at (142, -10.3) {synthétique · résumeur simulé};30\end{tikzpicture}31