diff options
author | Joe Zhao <ztuowen@gmail.com> | 2014-04-14 08:14:45 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2014-04-14 08:14:45 +0800 |
commit | cccccbf6cca94a3eaf813b4468453160e91c332b (patch) | |
tree | 23418cb73a10ae3b0688681a7f0ba9b06424583e /NetGen/testscript.py | |
download | tnet-cccccbf6cca94a3eaf813b4468453160e91c332b.tar.gz tnet-cccccbf6cca94a3eaf813b4468453160e91c332b.tar.bz2 tnet-cccccbf6cca94a3eaf813b4468453160e91c332b.zip |
First commit
Diffstat (limited to 'NetGen/testscript.py')
-rw-r--r-- | NetGen/testscript.py | 72 |
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 |