Graphics, Figures & TablesBack Propagation NN Tikz Diagram

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jakob1992
Posts: 3
Joined: Fri Mar 19, 2021 11:55 pm

Back Propagation NN Tikz Diagram

Post by jakob1992 »

I am trying to figure out how to draw this diagram in either tikz or svg:

Image

I tried few codes but feeling overwhelmed by the complexity of this figure since I am new to tikz drawings. Any help will be appreciated. Thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Back Propagation NN Tikz Diagram

Post by Stefan Kottwitz »

Hi Jacob,

welcome to the forum!

Perhaps show what you already tried, so we can help extending it or improving it, or possibly come up with similar or different suggestions.

Stefan
LaTeX.org admin
jakob1992
Posts: 3
Joined: Fri Mar 19, 2021 11:55 pm

Back Propagation NN Tikz Diagram

Post by jakob1992 »

Thank you, Stefan. One of the fellow users provided this code and gave me a head-start. However, since this is my first time working with tikz and on such a complicated figure, I am completely lost on how to proceed and finish drawing this. Here's the code:

Code: Select all

\documentclass[tikz]{standalone}
\usetikzlibrary{decorations.markings}

\begin{document}
\begin{tikzpicture}[
  dot/.style={
    circle, draw, inner sep=1.5pt
  },
  arrow/.style={
    decoration={markings,
    mark=at position 0.5 with {\arrow{latex}}},
    postaction={decorate}
  }
]

\node[dot, label={90:$\upsilon_1^{(1)}$}] (u11) at (0,0) {};

\node[dot, label={300:$\varphi^\prime(\cdot)$}] (p1) at (0,-2) {};

\node[dot] (x1) at (2,-2) {};

\node[dot, label={270:$\delta_1^{(1)}$}] (d11) at (0,-5) {};

\draw[arrow] (u11) -- node[pos=.5, label={180:$\varphi^\prime(\cdot)$}] {} (p1);
\draw (p1) -- (x1);
\draw[arrow] (p1) -- (d11);

\end{tikzpicture}
\end{document}
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Back Propagation NN Tikz Diagram

Post by Bartman »

Please let us know about your crossposts.
jakob1992
Posts: 3
Joined: Fri Mar 19, 2021 11:55 pm

Back Propagation NN Tikz Diagram

Post by jakob1992 »

Bartman wrote:Please let us know about your crossposts.
Yes, that's what I said. I didn't get much help on that forum, so I turned to this one to see if someone can Kindly help instead of pointing out crossposts. :)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Back Propagation NN Tikz Diagram

Post by Stefan Kottwitz »

Hi Jacob,

yes, you mentioned it. Cross-posts are ok, it's just important to add a link to the other site. In case it would have been solved at the other site, I may sit here and build that complex diagram because I don't know it's already done. With a link, I could know that. That's the simple reason why Bartman added the link.

In the meantime somebody wrote the whole diagram for you in the other forum. Without the link to the cross post, a reader would not have known it and perhaps tried some time himself/herself.

Anyway, good that you got a solution, a next time just mention a crosspost with a link to it, or just post only here. ;-)

Stefan
LaTeX.org admin
Post Reply