This commit is contained in:
shoney.arickathil 2023-09-16 23:02:26 +02:00
parent 04015cca97
commit f372f0616a
3 changed files with 31 additions and 1 deletions

View file

@ -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}

View file

@ -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):

BIN
doc/images/rnn_wno.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB