summaryrefslogtreecommitdiff
path: root/synthetic/bck/figure/tikz/data_split/bck
blob: 727f594dd68531b2ed7553277f9c79312268820b (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73

\begin{tikzpicture}
    \node[database,label=left:Full] (d) at (0,0){};

    \node[database,label=left:$m$ 80\%] (dtr) at (2,0.5){};
    \node[database,label=left:$\bar{m}$ 20\%] (dte) at (2,-0.5){};

    \draw[->] (d) to (dtr);
    \draw[->] (d) to (dte);

    \node[rectangle,draw,align=center] (target) at (5,0.5) {Target\\Model};

    \draw[->] (dtr) to[bend left] node[midway,above,inner sep=2pt] {training} (target);
    \draw[->] (dtr) to node[midway,below] {eval} (target);
    \draw[->] (dte) to node[midway,below] {eval} (target);

    \node[database,label=above:loss $m$] (dlm) at (7,0.5){};
    \node[database,label=above:loss $\bar{m}$] (dlnm) at (7,-0.5){};

    \draw[->] (target) to node[midway,above] {eval} (dlm);
    \draw[->] (target) to node[midway,below] {eval} (dlnm);

    \node[database,label=below:MIA data] (shu) at (7,-2){};
    \draw[->] (dlm) to[out=0,in=50]  (shu);
    \draw[->] (dlnm) to[bend left] (shu);
    
    \node[database,label=right:Train 80\%] (miatr) at (4,-1.5){};
    \node[database,label=right:Test 20\%] (miate) at (4,-2.5){};
    \draw[->] (shu) to (miatr);
    \draw[->] (shu) to (miate);

    \node[rectangle,draw,align=center] (miamod) at (2, -1.5) {MIA\\Model};

    \draw[->] (miatr) to[bend right] node[midway,above,inner sep=2pt] {training} (miamod);
    \draw[->] (miate) to node[midway,below] {eval} (miamod);

    \node (res) at (0,-1.5) {MIA result};
    \draw[->] (miamod) to (res);
\end{tikzpicture} 






\begin{tikzpicture}
\node[database,label=left:$D$] (d) at (0,0){};
\node[database,label=left:$D_{\text{Train}}$] (train) at (0,-2){};
\node[database,label=right:$D_{\text{Ttest}}$] (test) at (2,0){};

\draw[->] (d) to (train);
\draw[->] (d) to (test);

\def \p {-2} %Bloc position
\def \s {1} %spacing
\node[rectangle,draw] (g1) at (2,\p+\s) {Generator 1};
\node[rectangle,draw] (g2) at (2,\p) {Generator 2};
\node[rectangle,draw] (g3) at (2,\p-\s) {Generator 3};

\draw[->] (train) to (g1);
\draw[->] (train) to (g2);
\draw[->] (train) to (g3);

\node[database,label=right:$S_{1}$] (s1) at (4,\p+\s){};
\node[database,label=right:$S_{2}$] (s2) at (4,\p){};
\node[database,label=right:$S_{3}$] (s3) at (4,\p-\s){};

\draw[->] (g1) to (s1);
\draw[->] (g2) to (s2);
\draw[->] (g3) to (s3);


\end{tikzpicture}