summaryrefslogtreecommitdiff
path: root/tikz
diff options
context:
space:
mode:
authorJan Aalmoes <jan.aalmoes@inria.fr>2024-11-07 11:36:14 +0100
committerJan Aalmoes <jan.aalmoes@inria.fr>2024-11-07 11:36:14 +0100
commit8bbc035c904791895e2f55245348b9f27af8ea9b (patch)
tree0332d03c55c27d80095ae5338425ff96c1bb123a /tikz
initial commit
Diffstat (limited to 'tikz')
-rw-r--r--tikz/4att.tex20
-rw-r--r--tikz/attack.tex37
-rw-r--r--tikz/bin.tex18
-rw-r--r--tikz/bin_ens.tex31
-rw-r--r--tikz/ef.tex22
-rw-r--r--tikz/nobin_ens.tex31
6 files changed, 159 insertions, 0 deletions
diff --git a/tikz/4att.tex b/tikz/4att.tex
new file mode 100644
index 0000000..009b58a
--- /dev/null
+++ b/tikz/4att.tex
@@ -0,0 +1,20 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+ \def \s{1}
+
+ \draw (0,0) rectangle (\h,\h);
+ \node (a) at (1,1) {$id$};
+
+ \draw (\h+\s,0) rectangle (2*\h+\s,\h);
+ \node (a) at (1,1) {$1-id$};
+
+ \draw (0,\h+\s) rectangle (\h,2*\h+\s);
+ \node (a) at (1,1) {$0$};
+
+ \draw (\h+\s,\h+\s) rectangle (2*\h+\s,2*\h+\s);
+ \node (a) at (1,1) {$1$};
+
+
+\end{tikzpicture}
+
diff --git a/tikz/attack.tex b/tikz/attack.tex
new file mode 100644
index 0000000..14c605e
--- /dev/null
+++ b/tikz/attack.tex
@@ -0,0 +1,37 @@
+\begin{tikzpicture}
+
+ \def \h{-2}
+
+ %Donnée utilisateur
+ \node[color=gray] (ludata) at (0,1) {Donnée utilisateur};
+ \node (udata) at (0,-0.36) {};
+ \draw[color=gray] (-4,0.5) rectangle (4,-0.5);
+ \node[rectangle,draw] (x) at (-2,0) {Donnée d'entrée};
+ \node[rectangle,draw=red] (s) at (2,0) {Attribut sensible};
+
+ %Modèle cible
+ \draw[color=gray] (-4.5,\h+0.5) rectangle (1.5,\h-2);
+ \node[color=gray] (lmcible) at (-1.5,\h-2.5) {Modèle cible};
+
+ %Pipeline
+ \node[rectangle,draw] (model) at (0,\h) {Modèle};
+ \node[rectangle,draw=blue] (inf) at (0,\h-1) {Classification};
+ \node[rectangle,draw] (train) at (-3,\h) {Entrainement};
+
+ \draw[->] (udata) to (model);
+ \draw[->] (model) to (inf);
+ \draw[->] (train) to (model);
+
+ %Attaque
+ \node[rectangle,draw=blue] (att) at (5,\h) {Attaque};
+
+ %\draw[->,color=blue] (x) to (att);
+ %\draw[->,color=blue] (model) to (att);
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+
+ %\draw[color=red] (-2,0.5) rectangle (2,-0.5);
+ %\node[color=red] (cible) at (0,1) {Cible de l'attaque};
+\end{tikzpicture}
+
diff --git a/tikz/bin.tex b/tikz/bin.tex
new file mode 100644
index 0000000..8bfb576
--- /dev/null
+++ b/tikz/bin.tex
@@ -0,0 +1,18 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+
+ %Donnée utilisateur
+ \node[rectangle,draw=red] (s) at (2*\h,0) {Attribut sensible};
+
+ %Pipeline
+ \node[rectangle,draw=blue] (inf) at (0,0) {Classification};
+
+ %Attaque
+ \node[rectangle,draw=blue] (att) at (\h,0) {Attaque};
+
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+\end{tikzpicture}
+
diff --git a/tikz/bin_ens.tex b/tikz/bin_ens.tex
new file mode 100644
index 0000000..3f66af5
--- /dev/null
+++ b/tikz/bin_ens.tex
@@ -0,0 +1,31 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+
+ %Pipeline
+ \node[rectangle,draw=red] (s) at (2*\h,0) {Attribut sensible};
+ \node[rectangle,draw=blue] (inf) at (0,0) {Classification};
+ \node[rectangle,draw=blue] (att) at (\h,0) {Attaque};
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+ %Ensembles
+ \node (c0) at (0,1) {$0$};
+ \node (c1) at (0,2) {$1$};
+ \node (c2) at (0,3) {$0$};
+ \node (c3) at (0,4) {$\vdots$};
+
+ \node (a0) at (2*\h,1) {$1$};
+ \node (a1) at (2*\h,2) {$0$};
+ \node (a2) at (2*\h,3) {$1$};
+ \node (a3) at (2*\h,4) {$\vdots$};
+
+ \draw[->] (c0) to (a0);
+ \draw[->] (c1) to (a1);
+ \draw[->] (c2) to (a2);
+ \draw[->] (c3) to (a3);
+
+
+
+\end{tikzpicture}
+
diff --git a/tikz/ef.tex b/tikz/ef.tex
new file mode 100644
index 0000000..9604d97
--- /dev/null
+++ b/tikz/ef.tex
@@ -0,0 +1,22 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+
+ %Pipeline
+ \node[rectangle,draw=red] (s) at (2*\h,0) {Attribut sensible};
+ \node[rectangle,draw=blue] (inf) at (0,0) {Classification};
+ \node[rectangle,draw=blue] (att) at (\h,0) {Attaque};
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+ %Ensembles
+ \node (c0) at (0,1) {$E=\{0,\cdots,m-1\}$};
+
+ \node (a0) at (2*\h,1) {$F=\{0,\cdots,n-1\}$};
+
+ \draw[->] (c0) to (a0);
+
+
+
+\end{tikzpicture}
+
diff --git a/tikz/nobin_ens.tex b/tikz/nobin_ens.tex
new file mode 100644
index 0000000..4bb041f
--- /dev/null
+++ b/tikz/nobin_ens.tex
@@ -0,0 +1,31 @@
+\begin{tikzpicture}
+
+ \def \h{4}
+
+ %Pipeline
+ \node[rectangle,draw=red] (s) at (2*\h,0) {Attribut sensible};
+ \node[rectangle,draw=blue] (inf) at (0,0) {Classification};
+ \node[rectangle,draw=blue] (att) at (\h,0) {Attaque};
+ \draw[->,color=blue] (inf) to (att);
+ \draw[->,color=red] (att) to (s);
+
+ %Ensembles
+ \node (c0) at (0,1) {$0$};
+ \node (c1) at (0,2) {$1$};
+ \node (c2) at (0,3) {$2$};
+ \node (c3) at (0,4) {$\vdots$};
+
+ \node (a0) at (2*\h,1) {$853$};
+ \node (a1) at (2*\h,2) {$22$};
+ \node (a2) at (2*\h,3) {$312$};
+ \node (a3) at (2*\h,4) {$\vdots$};
+
+ \draw[->] (c0) to (a0);
+ \draw[->] (c1) to (a1);
+ \draw[->] (c2) to (a2);
+ \draw[->] (c3) to (a3);
+
+
+
+\end{tikzpicture}
+