-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.tex
56 lines (56 loc) · 2.28 KB
/
example.tex
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This program is free software: you can redistribute it and/or modify %%
%% it under the terms of the GNU General Public License as published by %%
%% the Free Software Foundation, either version 3 of the License, or %%
%% (at your option) any later version. %%
%% %%
%% This program is distributed in the hope that it will be useful, %%
%% but WITHOUT ANY WARRANTY; without even the implied warranty of %%
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %%
%% GNU General Public License for more details. %%
%% %%
%% You should have received a copy of the GNU General Public License %%
%% along with this program. If not, see <https://www.gnu.org/licenses/>. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{standalone}
\input{tikzhelpers}
\input{tikznn}
\begin{document}
\begin{tikzpicture}
% Below you see the default arguments
% \tikzNN can be called without any arguments
\tikzNN[
% Prefix of name
name={NN},
% How the network is built (number of neurons in index layer)
nn neurons={1,2,3,4},
% Default style of layer rectangles
inside layer style={fill=blue!40},
% Styles per layer (the rectangle)
layer styles={{fill=red!40},{fill=green!40}},
% Scale of whole thing
scale={1},
% Distance between neuron and layer rectangle
layer padding={0.05cm},
% How tall the layers are
layer height={3cm},
% Horisontal separation of layers
layer sep={1cm},
% Size of neurons
neuron radius={0.2cm},
% Tikz styles
% Style of the connection between neurons
connection style={gray},
% Color of the neurons
neuron color={gray!50},
% Node style for neuron
neuron style={},
% Args to send to \begin{scope}
tikz args={},
% Show the coordinate names of the layers and neurons
verbose=true,
]
\end{tikzpicture}
\end{document}