I would like to write an algorithm in a very verbose matter. I want to write a couple of for loops and the rest is pretty much text.
I include here the code I am using with algpseudocode imported as follows:
\usepackage[noend]{algpseudocode}
\usepackage{algorithm}
Code for the algorithm:
\begin{algorithm}
\caption{Backpropagation learning algorithm}
\begin{algorithmic}
\For {d in data}
Forwards Pass \hfill \\
Starting from the input layer, use eq. \ref{update} to do a forward pass trough the network, computing the activities of the neurons at each layer.
Backwards Pass \hfill \\
Compute the derivatives of the error function with respect to the output layer activities
\For {layer in layers}
Compute the derivatives of the error function with respect to the inputs of the upper layer neurons
Compute the derivatives of the error function with respect to the weights between the outer layer and the layer below
Compute the derivatives of the error function with respect to the activities of the layer below
\EndFor
Updates the weights.
\EndFor
\end{algorithmic}
\end{algorithm}
Of course this works, but it is a complete hack and it is rendered horribly. From the documentation of the package, I figure that it is not made to support this.
Am I right? Is there a different package I should use?
Edit: I would like the final output to look something like this:
for e in epochs:
for d in data:
Forward pass:
Starting from the input layer, use eq. \ref{update} to do a forward pass trough the network, computing the activities of the neurons at each layer.
Backward pass:
Compute the derivatives of the error function with respect to the output layer activities
for layer in layers:
Compute the derivatives of the error function with respect to the inputs of the upper layer neurons
Compute the derivatives of the error function with respect to the weights between the outer layer and the layer below
Compute the derivatives of the error function with respect to the activities of the layer below
Updates the weights.
Thank you!


lstlistingwork? See e.g. http://tex.stackexchange.com/a/145143/586 – Torbjørn T. Jan 23 '14 at 17:41\listofalgorithmsat the end of the report and have it included – elaRosca Jan 23 '14 at 20:19