-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperceptron.dot
57 lines (55 loc) · 1.46 KB
/
perceptron.dot
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
digraph G {
label="Perceptron";
rankdir = LR;
splines=false;
edge[style=invis];
ranksep= 1.4;
{
node [shape=circle, color=yellow, style=filled, fillcolor=yellow];
x0 [label=<x<sub>0</sub>>];
//a02 [label=<a<sub>0</sub><sup>(2)</sup>>];
}
{
node [shape=circle, color=chartreuse, style=filled, fillcolor=chartreuse];
x1 [label=<x<sub>1</sub>>];
x2 [label=<x<sub>2</sub>>];
x3 [label=<x<sub>3</sub>>];
}
{
node [shape=circle, color=dodgerblue, style=filled, fillcolor=dodgerblue];
a12 [label=<z>];
//a22 [label=<a<sub>2</sub><sup>(2)</sup>>];
//a32 [label=<a<sub>3</sub><sup>(2)</sup>>];
}
{
node [shape=circle, color=coral1, style=filled, fillcolor=coral1];
O1 [label=<ŷ>];
}
{
rank=same;
x0->x1->x2->x3;
}
{
rank=same;
a12;
}
{
rank=same;
O1;
}
l0 [shape=plaintext, label="inputs"];
l0->x0;
{rank=same; l0;x0};
l1 [shape=plaintext, label=<w<sup>T</sup>x>];
{rank=same; l1;a12};
l3 [shape=plaintext, label=<output<br/>Φ(z)>];
l3->O1;
{rank=same; l3;O1};
edge[style=solid, tailport=e, headport=w];
{x0; x1; x2; x3} -> {a12};
{x0}->{a12}[label=<w<sub>0</sub>>];
{x1}->{a12}[label=<w<sub>1</sub>>];
{x2}->{a12}[label=<w<sub>2</sub>>];
{x3}->{a12}[label=<w<sub>3</sub>>];
{a12} -> {O1}[label=<activation<br/>function>];
}