summaryrefslogtreecommitdiff
path: root/tikz/attack/attack.tex
blob: 9177ecd1702f4e4488b473e992bc1700a33e7721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
\begin{tikzpicture}

    \def \h{-2}

    %Donnée utilisateur
    \node[color=gray] (ludata) at (0,1) {User's data};
    \node (udata) at (0,-0.36) {};
    \draw[color=gray] (-4,0.5) rectangle (4,-0.5);
    \node[rectangle,draw] (x) at (-2,0) {Input data};
    \node[rectangle,draw=red] (s) at (2,0) {Sensitive attribute};

    %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) {Target model};

    %Pipeline
    \node[rectangle,draw] (model) at (0,\h) {Model};
    \node[rectangle,draw=blue] (inf) at (0,\h-1) {Classification};
    \node[rectangle,draw] (train) at (-3,\h) {Training};

    \draw[->] (udata) to (model);
    \draw[->] (model) to (inf);
    \draw[->] (train) to (model);

    %Attaque
    \node[rectangle,draw=blue] (att) at (5,\h) {Attack};

    %\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}