2

I just want to draw the following image:

enter image description here

The examples I found in internet (see example1, example2, example3) cannot draw layers that are properly aligned.

For example, below is what I have tried. enter image description here

Actually, I never used latex or tikz-pgf. Can anybody help me to draw the above neural network with a simple easy-to-understand code (I am very beginner).

  • I guess it will be rather straightforward to reproduce your scan, but you might learn more if you post your attempt and say where you got stuck. I also do not quite understand what you mean by "(not) properly aligned". –  Mar 17 '18 at 00:51
  • @marmot, in the second image, the first node of the hidden layer starts below the first node of input layer. Not properly placed. – Rotten Tomato Mar 17 '18 at 00:58
  • Welcome to TeX.se. If you've never used LaTeX before, then this may not be the best place to start. Do you have an independent need to learn LaTeX or do you just want to draw this diagram? But regardless, unless you post a minimal document showing what you've done (not just an image) and explain exactly what needs to be corrected, there's no reason not to simply close this question as a duplicate of the others you've linked to. – Alan Munn Mar 17 '18 at 01:11
  • @Alan Munn, I just want to draw this diagram. I do not need to learn it very much. If I got some sample code with similar structure like first figure, then I can customize it for my purpose. I tried some other code. But, I failed. – Rotten Tomato Mar 17 '18 at 01:21
  • 1
    If you only want the diagram, I would use a GUI drawing program to do it. It will be faster, and you can get exactly what you want. Here you're just asking others to do your work for you. – Alan Munn Mar 17 '18 at 01:27
  • GUI drawing program is not giving quite good shape compared to the given one. 2) As I don't have much idea, it seems to me that the above figure is not hard to create if you have some idea about latex or if you get a good starting program. So, I asked. @AlanMunn
  • – Rotten Tomato Mar 17 '18 at 01:32