RNN for cortex

129 views
Skip to first unread message

jw

unread,
Aug 23, 2017, 12:33:32 PM8/23/17
to clojure-cortex
trying to implement a simplified version of
for cortex. 

jw

unread,
Aug 23, 2017, 4:22:10 PM8/23/17
to clojure-cortex
One existing implementation:
https://github.com/fchollet/keras/blob/master/keras/layers/recurrent.py

a few questions though:
1) I also looked at cudnn documentation and after I subscribed, I could load the shared objects/archives (.so/.a) files. 
However I did not find the source code? Is it available somewhere (would be interested in their implem. of rnn, which you find int the doc.)?

2) I am using vim for clojure. Is it realistic for dev/debugging/visualisation with cortex? If not, any recommendation?

Regards, 
J

Chris Nuernberger

unread,
Aug 24, 2017, 5:30:32 PM8/24/17
to clojure-cortex
Hey JW:

I think you will have to create a layer with a bunch of parameters in a similar vein as the cudnn API.  

Basically it should work like a linear layer or an number of other layers just with some complex details.

An interesting blog post to think about:

jw

unread,
Aug 26, 2017, 12:34:00 PM8/26/17
to clojure-cortex

Thank you!

I suggest that we start with "simple RNN" rather than a LSTM (see diagram in http://www.wildml.com/2015/09/recurrent-neural-networks-tutorial-part-1-introduction-to-rnns/).

For this and with your lib., one would need to generate/coordinate:
1) directed graphs with one "stream" flowing transversally within a layer (for forward and backward propag.)
2) nodes with one incoming stream and two going out


With these basic operations, it should be straightforward to do RNNs.
I have looked at concat, join, split layers, but how to use them for building the above (do you have examples)?

Kind Regards!


Reply all
Reply to author
Forward
0 new messages