Repository Public MIT Research preview
1% CE02-F11 — Index approximatif : le rappel que l'on garde contre le calcul que l'on évite.2% Question : que perd-on, exactement, quand on ne compare la requête qu'à une partie des vecteurs ?3% DONNÉES : CE02-F11-donnees.tex. Gauche : CALCUL EXACT (voisins retrouvés et comparaisons comptés, fichier inversé écrit4% pour le cours, vecteurs de phrases du corpus synthétique). Droite : MESURÉ SUR UNE MACHINE (relevé daté, Python pur) :5% aucune valeur pour une bibliothèque optimisée ni pour un grand corpus.6\input{CE02-F11-donnees.tex}%7\begin{tikzpicture}[x=1mm, y=1mm]8 \begin{axis}[atlas axis, scale only axis, at={(10mm,0)}, width=60mm, height=37mm, xmin=0, xmax=265, ymin=50, ymax=104,9 xlabel={comparaisons par requête (moyenne)}, ylabel={voisins retrouvés (\%)}, xtick={0,50,100,150,200,250}, ytick={50,60,70,80,90,100},10 ymajorgrids, axis lines=left, clip=false, title={Rappel@\CEFonzeK\ contre l'exact : \CEFonzeVecteurs\ vecteurs, \CEFonzeListes\ listes},11 title style={yshift=-1mm}]12 \addplot[ce courbe a] coordinates {\CEFonzeRappel};13 \addplot[only marks, mark=diamond*, mark size=2.6pt, draw=atlasValid, fill=atlasValid] coordinates {\CEFonzeExact};14 \node[atlas note, anchor=west, text=atlasFlow] at (axis cs:38,56) {1 sonde};15 \node[atlas note, anchor=north west, text=atlasFlow] at (axis cs:80,89.6) {4 sondes};16 \node[atlas note, anchor=north, text=atlasValid, align=center] at (axis cs:221,96.4) {recherche\\exacte};17 \node[ce nature, anchor=south east] at (rel axis cs:.99,.03) {calcul exact};18 \end{axis}19 \begin{axis}[atlas axis, scale only axis, at={(90mm,0)}, width=50mm, height=37mm, xmin=0, xmax=17, ymin=0, ymax=800,20 xlabel={listes visitées (sondes)}, ylabel={microsecondes par requête}, xtick={1,4,8,12,16}, ytick={0,200,400,600,800},21 ymajorgrids, axis lines=left, clip=false, title={Temps de recherche}, title style={yshift=-1mm}]22 \addplot[ce courbe c] coordinates {\CEFonzeTemps};23 \addplot[draw=atlasValid, line width=1.1pt, dash pattern=on 4pt off 2pt] coordinates {(0,\CEFonzeTempsExact) (17,\CEFonzeTempsExact)};24 \node[atlas note, anchor=south west, text=atlasValid] at (axis cs:.4,668) {recherche exacte};25 \node[ce nature, anchor=south east] at (rel axis cs:.99,.03) {mesuré · \CEFonzeDate};26 \end{axis}27\end{tikzpicture}28