6 ms·
Related - does anyone know of a super basic, from-the-ground up example of RNNs with TensorFlow? Even this is a little more advanced when it comes to RNNs (and
by king_magic 10y ago
Related - does anyone know of a super basic, from-the-ground up example of RNNs with TensorFlow? Even this is a little more advanced when it comes to RNNs (and I've personally found that the official TensorFlow documentation on RNNs/LSTMs is a little spare in terms of how the official example actually works).
- T-A 10y agoMaybe http://r2rt.com/recurrent-neural-networks-in-tensorflow-i.html http://r2rt.com/recurrent-neural-networks-in-tensorflow-i.ht... ?
- barrythebastard 10y agoAmong the ones I saw this one is the best http://r2rt.com/recurrent-neural-networks-in-tensorflow-i.html http://r2rt.com/recurrent-neural-networks-in-tensorflow-i.ht... The first thing I tried to do in Tensorflow was RNN and I had quite a hard time with other tutorials.
- antognini 10y agoIn addition to the other link provided, I've found this blog post to be helpful: http://mourafiq.com/2016/05/15/predicting-sequences-using-rnn-in-tensorflow.html http://mourafiq.com/2016/05/15/predicting-sequences-using-rn...
- brobinson 10y agoHis code successfully can successfully predict continuous functions, but would this also work for predicting the next value in a time series? If not, what is the best ML-based approach for that?
- Eridrus 10y agoI tried to use TF to train an RNN recently and ended up using Keras, which is a layer on top of TF/Theano that made it much simpler, and I hear Theano's RNN implementation is better atm anyway. This is the most straight forward TF example I could find, but it uses google's skflow library: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/skflow/text_classification.py https://github.com/tensorflow/tensorflow/blob/master/tensorf... One of the things I realized when trying to improve my Keras model is that Keras seems to have a lot of good defaults, so it's easier to get something working quickly, and then dig into all the options, rather than having to start from scratch.
- plusepsilon 10y agoI agree Keras is the easiest way to get into RNNs and deep learning in general.
- catosmandros 10y agoI would like to start digging into Neural Tensor Networks, will Keras be also a good choice?
- Eridrus 10y agoI'm not familiar with Neural Tensor Networks, so I'm not super sure. From the bit of reading I did, it seems like they're related to recursive neural networks somehow. I couldn't find any implementations of either concept on top of Keras, so I probably wouldn't recommend it. Your best bet is probably to find an existing implementation and study it in whatever language/framework it's in. Depending on how related recursive neural networks are, I found a few implementations of those in theano, etc, and I'd probably suggest starting there. If they're not super related, Keras may be a good option, since the learning curve isn't very steep to get started, but you'll probably have to assemble the architecture yourself and since it's an abstraction it will really depend on how easily NTNs can be expressed in that abstraction.
- wodenokoto 10y agoIsn't that the same thing? You use tensors to build a computational graph.
- RockyMcNuts 10y agoMaybe worthwhile https://bleedingedgepress.com/tensor-flow-for-machine-intelligence/ https://bleedingedgepress.com/tensor-flow-for-machine-intell... code repo https://github.com/backstopmedia/tensorflowbook/tree/master/chapters/06_recurrent_neural_networks_and_natural_language_processing https://github.com/backstopmedia/tensorflowbook/tree/master/... seems like a work in progress, I have some quibbles with coding style, and I didn't get far into RNNs... but it is super basic from the ground up, and I got a lot better with TensorFlow.