summaryrefslogtreecommitdiff
path: root/NetGen/testscript.py
blob: 70fa005d3a4b55d7c1d0dd06c53a45f494427a80 (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
'''
Created on Mar 16, 2014

@author: joe
'''
from layerobj import *

if __name__ == '__main__':
    Discrete(1,1,[Distrib(1,3)]).flush();
    Discrete(1,1,
             [SharedLinearity(1,1),
              MiscPipe(1,"<learnstop>"),
              MiscPipe(1,"<learnstop>"),
              ]).flush();
    Discrete(1,1,
             [MiscPipe(1,"<softmax>"),
              MiscPipe(1),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [SharedLinearity(1,1),
              MiscPipe(1),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [MiscPipe(1,"<softmax>"),
              MiscPipe(1),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [MiscPipe(1,"<sigmoid>"),
              MiscPipe(1),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [Distrib(1,2),
              MiscPipe(1),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [MiscPipe(1,"<learnstop>"),
              SharedLinearity(1,1),
              SharedLinearity(1,1),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [MiscPipe(1),
              Combine(2),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [MiscPipe(1),
              SharedLinearity(1,1),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [MiscPipe(1),
              MiscPipe(1,"<sigmoid>"),
              MiscPipe(1),
              ]).flush();
    Discrete(1,1,
             [SharedLinearity(1,1),
              SharedLinearity(1,1),
              SharedLinearity(1,1),
              ]).flush();
    Discrete(1,1,
             [Combine(3)
              ]).flush();
    MiscPipe(1,"<sigmoid>").flush()
    SharedLinearity(1,1).flush();
    MiscPipe(1,"<softmax>").flush();