Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RNN for binary classification of sequence

Tags:

I wondering if someone can suggest a good library or reference (tutorial or article) to implement a Recurrent Neural Network (RNN).

I tried to use the rnnlib by Alex Graves, but I had some troubles in changing the architecture to adapt the network to my needs.

In particular, I'm trying to recognize strings coming from a regular language, using positive and negative samples.

This is an example of my training set:

str1: w1 w2 ... wn --> label 1 (it is a valid string for the language)

str2: w1 w2 ... wi --> label 0 (it does not belong to the language)

where wi are drawn from the alphabet of the unknown language.

Thanks in advance.

like image 289
G_Zak Avatar asked Nov 09 '16 18:11

G_Zak


1 Answers

For tools, I would highly recommend TensforFlow.

  • Great intro to RNN
  • RNN + TensorFlow for noobs
  • RNN + classification : take a look at the sequence classification in this article, which is the case of yours.
like image 74
greeness Avatar answered Sep 23 '22 16:09

greeness