📚 The CoCalc Library - books, templates and other resources
License: OTHER
Credits: Forked from deep-learning-keras-tensorflow by Valerio Maggio
Recurrent Neural networks
RNN
A recurrent neural network (RNN) is a class of artificial neural network where connections between units form a directed cycle. This creates an internal state of the network which allows it to exhibit dynamic temporal behavior.
Backprop Through time
Contrary to feed-forward neural networks, the RNN is characterized by the ability of encoding longer past information, thus very suitable for sequential models. The BPTT extends the ordinary BP algorithm to suit the recurrent neural architecture.
IMDB sentiment classification task
This is a dataset for binary sentiment classification containing substantially more data than previous benchmark datasets.
IMDB provided a set of 25,000 highly polar movie reviews for training, and 25,000 for testing.
There is additional unlabeled data for use as well. Raw text and already processed bag of words formats are provided.
Data Preparation - IMDB
Model building
LSTM
A LSTM network is an artificial neural network that contains LSTM blocks instead of, or in addition to, regular network units. A LSTM block may be described as a "smart" network unit that can remember a value for an arbitrary length of time.
Unlike traditional RNNs, an Long short-term memory network is well-suited to learn from experience to classify, process and predict time series when there are very long time lags of unknown size between important events.
GRU
Gated recurrent units are a gating mechanism in recurrent neural networks.
Much similar to the LSTMs, they have fewer parameters than LSTM, as they lack an output gate.