summaryrefslogtreecommitdiff
path: root/NetGen/testscript.py
diff options
context:
space:
mode:
Diffstat (limited to 'NetGen/testscript.py')
-rw-r--r--NetGen/testscript.py72
1 files changed, 72 insertions, 0 deletions
diff --git a/NetGen/testscript.py b/NetGen/testscript.py
new file mode 100644
index 0000000..70fa005
--- /dev/null
+++ b/NetGen/testscript.py
@@ -0,0 +1,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();
+ \ No newline at end of file