diff --git a/doc/chapters/math-behind.tex b/doc/chapters/math-behind.tex index 40bdfad..8e599ad 100644 --- a/doc/chapters/math-behind.tex +++ b/doc/chapters/math-behind.tex @@ -109,6 +109,36 @@ Substituting \(a = \exp(x_i)\) and \(b = \sum_{j=1}^n \exp(x_j)\) in equation \e \item Logarithms and Multiplication: Logarithms convert multiplication to addition. Probabilities of independent events, represented as \(P(A \cap B \cap C \cap \ldots)\). Logarithm of the product of these probabilities simplifies the computation to a sum. \end{itemize} +\section{ \acs*{RNN} - Forward and Backward Propagation} + +\acfp{RNN} \parencite{Rumelhart.1986} is best suited for machine learning problems that involve sequential data and use patterns to predict the output. A recurrent neural network is specialized for processing sequence of values $ x^{(1)},\ldots,x^{(t)}$. + +\begin{figure}[H] + \centering + \includegraphics[scale=0.9]{rnn_wno.png} + \caption{A \acl*{RNN} with no output \parencite[Page 370]{Goodfellow-et-al-2016}} + \label{fig:RNN without output} +\end{figure} + + +\begin{align} + h^{(t)} = f(h^{(t-1)}, x^{(t)}; \theta) + \end{align} + +Properties of a RNN are as follows \parencite[Chapter 10]{Goodfellow-et-al-2016}:- +\begin{itemize} + \item Graph un-rolling and parameter sharing. + + + + + +\end{itemize} + +This machine learning algorithm store information of previous states and holds the memory. + + + \section{Summary} diff --git a/doc/chapters/model-selection.tex b/doc/chapters/model-selection.tex index da1102c..95638cd 100644 --- a/doc/chapters/model-selection.tex +++ b/doc/chapters/model-selection.tex @@ -107,7 +107,7 @@ For example, consider a vocabulary of 100 unique words in the \textit{ProductNam \end{table} \section{Architecture of \acf{RNN}} -\acs{RNN} module copied from \parencite{sean} tutorial contains two linear layers which operate on input and hidden state, with LogSoftmax layer after the output layer. \acfp{RNN} \parencite{Rumelhart.1986} is best suited for machine learning problems that involve sequential data and use patterns to predict the output. This machine learning algorithm store information of previous states and holds the memory. +\acs{RNN} module copied from \parencite{sean} tutorial contains two linear layers which operate on input and hidden state, with LogSoftmax layer after the output layer. \begin{lstlisting}[language=Python,label=code:RNN-class, caption={\acf{RNN} class}] class RNN(nn.Module): diff --git a/doc/images/rnn_wno.png b/doc/images/rnn_wno.png new file mode 100644 index 0000000..68d8430 Binary files /dev/null and b/doc/images/rnn_wno.png differ