-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathfigure5-5-deep_polynomial_model.tex
More file actions
53 lines (42 loc) · 1.31 KB
/
figure5-5-deep_polynomial_model.tex
File metadata and controls
53 lines (42 loc) · 1.31 KB
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
\documentclass[tikz, border=50pt]{standalone}
\usepackage{tikz}
\usepackage{medl_colors}
\usetikzlibrary{shapes.multipart, shapes.geometric, arrows.meta}
\usetikzlibrary{matrix, calc, positioning,fit}
\begin {document}
\newcommand{\columns}{10}
\newcommand{\mcolumns}{9}
\newcommand{\rows}{3}
\begin{tikzpicture}
\node[greenshape, circle, minimum size = 1cm] (column-01) at (0,-.5) {$x_1$};
\node[greenshape, circle, minimum size = 1cm] (column-02) at (0,-2) {$x_2$};
\node[greenshape, circle, minimum size = 1cm] (column-03) at (0,-4.5) {$x_{1000}$};
\node[redshape, circle, minimum size = 1cm] (column-111) at (22,-2) {$\hat y$};
% Layer B
\foreach \i in {1,...,\columns}
{
\foreach \j in {1,...,\rows}
{
\node[blueshape, circle, minimum size = 1cm] (column-\i\j) at (\i*2,-\j*\j/2) {};
}
}
\foreach \i [evaluate=\i as \in using int(\i+1) ] in {0,...,\mcolumns}
{
\foreach \j in {1,...,\rows}
{
\foreach \k in {1,...,\rows}
{
\draw[-Triangle, thickline] (column-\i\j) -- (column-\in\k);
}
}
}
\foreach \j in {1,...,\rows}
{
\draw[-Triangle, thickline] (column-10\j) -- (column-111);
}
\foreach \i in {0,...,\columns}
{
\draw[thick, dashed] ([yshift=-3mm]column-\i2.south) -- ([yshift=3mm]column-\i3.north);
}
\end{tikzpicture}
\end {document}