summaryrefslogtreecommitdiff
path: root/doc/nnetwork.svg
blob: 7cd35f410b4109da2b5d9c6743eb8a14596b1665 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<svg id='nnetwork' width='100' height='100' viewbox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'>
	
	<style>
		:root {
			--dark-stroke: 1;
			--stroke-lightness: calc(100% - calc(var(--dark-stroke) * 100%));
			--stroke-color: hsl(0, 0%, 50%);
			--fill-color: hsl(0, 0%, 100%);
			--n1-color: hsl(210, 100%, 50%);
			--n2-color: hsl(300, 100%, 50%);
			--stroke-width: 0.5;
			--stroke-width-n: 5;
		}

		.node {
			fill: var(--fill-color);
			stroke: var(--stroke-color);
			stroke-width: 3;
		}

		.weight {
			stroke: var(--stroke-color);
			stroke-width: var(--stroke-width);
			fill-opacity: 0;
		}

		#node-n1 {
			fill: var(--n1-color);
			stroke: var(--n1-color);
		}

		#node-n2 {
			fill: var(--n2-color);
			stroke: var(--n2-color);
		}

		#weight-n1 {
			stroke: var(--n1-color);
			stroke-width: var(--stroke-width-n);
		}

		#weight-n2 {
			stroke: var(--n2-color);
			stroke-width: var(--stroke-width-n);
		}
		</style>
	
		<!--Weigths Layer 1-to-2 Node 1-->
		<path class='weight' id='weight' d='M10 10, 37 10'/>
		<path class='weight' id='weight' d='M10 50, 37 10'/>
		<path class='weight' id='weight' d='M10 90, 37 10'/>

		<!--Weigths Layer 1-to-2 Node 2-->
		<path class='weight' id='weight-n1' d='M10 10, 37 50'/>
		<path class='weight' id='weight' d='M10 50, 37 50'/>
		<path class='weight' id='weight' d='M10 90, 37 50'/>

		<!--Weigths Layer 1-to-2 Node 3-->
		<path class='weight' id='weight' d='M10 10, 37 90'/>
		<path class='weight' id='weight' d='M10 50, 37 90'/>
		<path class='weight' id='weight' d='M10 90, 37 90'/>
	
		<!--Weigths Layer 2-to-3 Node 1-->
		<path class='weight' id='weight' d='M37 10, 64 10'/>
		<path class='weight' id='weight' d='M37 50, 64 10'/>
		<path class='weight' id='weight' d='M37 90, 64 10'/>

		<!--Weigths Layer 2-to-3 Node 2-->
		<path class='weight' id='weight-n2' d='M37 10, 64 50'/>
		<path class='weight' id='weight' d='M37 50, 64 50'/>
		<path class='weight' id='weight' d='M37 90, 64 50'/>

		<!--Weigths Layer 2-to-3 Node 3-->
		<path class='weight' id='weight' d='M37 10, 64 90'/>
		<path class='weight' id='weight-n1' d='M37 50, 64 90'/>
		<path class='weight' id='weight' d='M37 90, 64 90'/>

		<!--Weigths Layer 3-to-4 Node 1-->
		<path class='weight' id='weight' d='M64 10, 90 10'/>
		<path class='weight' id='weight' d='M64 50, 90 10'/>
		<path class='weight' id='weight' d='M64 90, 90 10'/>
		
		<!--Weigths Layer 3-to-4 Node 2-->
		<path class='weight' id='weight' d='M64 10, 90 50'/>
		<path class='weight' id='weight' d='M64 50, 90 50'/>
		<path class='weight' id='weight' d='M64 90, 90 50'/>
		
		<!--Weigths Layer 3-to-4 Node 3-->
		<path class='weight' id='weight' d='M64 10, 90 90'/>
		<path class='weight' id='weight-n2' d='M64 50, 90 90'/>
		<path class='weight' id='weight' d='M64 90, 90 90'/>
		
		<!--Layer Lines-->
		<path class='weight' id='weight-n1' d='M10 10, 10 90'/>
		<path class='weight' id='weight-n2' d='M37 10, 37 90'/>
		<path class='weight' id='weight-n1' d='M64 10, 64 90'/>
		<path class='weight' id='weight-n2' d='M90 10, 90 90'/>

		<!--Nodes Layer 1-->	
		<circle class='node' id='node-n1' cx='10' cy='10' r='7.5'/>
		<circle class='node' id='node-n1' cx='10' cy='50' r='7.5'/>
		<circle class='node' id='node-n1' cx='10' cy='90' r='7.5'/>

		<!--Nodes Layer 2-->	
		<circle class='node' id='node-n2' cx='37' cy='10' r='7.5'/>
		<circle class='node' id='node-n1' cx='37' cy='50' r='7.5'/>
		<circle class='node' id='node-n2' cx='37' cy='90' r='7.5'/>

		<!--Nodes Layer 3-->	
		<circle class='node' id='node-n1' cx='64' cy='10' r='7.5'/>
		<circle class='node' id='node-n2' cx='64' cy='50' r='7.5'/>
		<circle class='node' id='node-n1' cx='64' cy='90' r='7.5'/>
		
		<!--Nodes Layer 4-->	
		<circle class='node' id='node-n2' cx='90' cy='10' r='7.5'/>
		<circle class='node' id='node-n2' cx='90' cy='50' r='7.5'/>
		<circle class='node' id='node-n2' cx='90' cy='90' r='7.5'/>
		
</svg>