Tikz - Drawing fully connected neural network vertically












0















I want to reproduce the following image but vertically and with 1 input neuron:
enter image description here
Is it possible to draw this vertically?










share|improve this question


















  • 1





    Do you have the code for the horizontally? Simply add a rotate=90.

    – JouleV
    Mar 14 at 16:29











  • @JouleV Wouldn't that rotate the text as well?

    – Superuser27
    Mar 14 at 16:30






  • 3





    @Superuser27 Of course, we have to do something more with the nodes, but I think it will be too long for a comment. rotate=90 is a general hint, it is not an answer.

    – JouleV
    Mar 14 at 16:32













  • I don't have the original latex code.

    – Codevan
    Mar 14 at 16:46











  • This site has many examples. Just take one of them and then do as @JouleV suggests.

    – marmot
    Mar 14 at 16:53
















0















I want to reproduce the following image but vertically and with 1 input neuron:
enter image description here
Is it possible to draw this vertically?










share|improve this question


















  • 1





    Do you have the code for the horizontally? Simply add a rotate=90.

    – JouleV
    Mar 14 at 16:29











  • @JouleV Wouldn't that rotate the text as well?

    – Superuser27
    Mar 14 at 16:30






  • 3





    @Superuser27 Of course, we have to do something more with the nodes, but I think it will be too long for a comment. rotate=90 is a general hint, it is not an answer.

    – JouleV
    Mar 14 at 16:32













  • I don't have the original latex code.

    – Codevan
    Mar 14 at 16:46











  • This site has many examples. Just take one of them and then do as @JouleV suggests.

    – marmot
    Mar 14 at 16:53














0












0








0


0






I want to reproduce the following image but vertically and with 1 input neuron:
enter image description here
Is it possible to draw this vertically?










share|improve this question














I want to reproduce the following image but vertically and with 1 input neuron:
enter image description here
Is it possible to draw this vertically?







tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 14 at 16:27









CodevanCodevan

62




62








  • 1





    Do you have the code for the horizontally? Simply add a rotate=90.

    – JouleV
    Mar 14 at 16:29











  • @JouleV Wouldn't that rotate the text as well?

    – Superuser27
    Mar 14 at 16:30






  • 3





    @Superuser27 Of course, we have to do something more with the nodes, but I think it will be too long for a comment. rotate=90 is a general hint, it is not an answer.

    – JouleV
    Mar 14 at 16:32













  • I don't have the original latex code.

    – Codevan
    Mar 14 at 16:46











  • This site has many examples. Just take one of them and then do as @JouleV suggests.

    – marmot
    Mar 14 at 16:53














  • 1





    Do you have the code for the horizontally? Simply add a rotate=90.

    – JouleV
    Mar 14 at 16:29











  • @JouleV Wouldn't that rotate the text as well?

    – Superuser27
    Mar 14 at 16:30






  • 3





    @Superuser27 Of course, we have to do something more with the nodes, but I think it will be too long for a comment. rotate=90 is a general hint, it is not an answer.

    – JouleV
    Mar 14 at 16:32













  • I don't have the original latex code.

    – Codevan
    Mar 14 at 16:46











  • This site has many examples. Just take one of them and then do as @JouleV suggests.

    – marmot
    Mar 14 at 16:53








1




1





Do you have the code for the horizontally? Simply add a rotate=90.

– JouleV
Mar 14 at 16:29





Do you have the code for the horizontally? Simply add a rotate=90.

– JouleV
Mar 14 at 16:29













@JouleV Wouldn't that rotate the text as well?

– Superuser27
Mar 14 at 16:30





@JouleV Wouldn't that rotate the text as well?

– Superuser27
Mar 14 at 16:30




3




3





@Superuser27 Of course, we have to do something more with the nodes, but I think it will be too long for a comment. rotate=90 is a general hint, it is not an answer.

– JouleV
Mar 14 at 16:32







@Superuser27 Of course, we have to do something more with the nodes, but I think it will be too long for a comment. rotate=90 is a general hint, it is not an answer.

– JouleV
Mar 14 at 16:32















I don't have the original latex code.

– Codevan
Mar 14 at 16:46





I don't have the original latex code.

– Codevan
Mar 14 at 16:46













This site has many examples. Just take one of them and then do as @JouleV suggests.

– marmot
Mar 14 at 16:53





This site has many examples. Just take one of them and then do as @JouleV suggests.

– marmot
Mar 14 at 16:53










1 Answer
1






active

oldest

votes


















5














YouTube comment section: One last video before bed.
Me: One last TikZ picture before bed.





Here is a good starting point



documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[cir/.style={circle,draw=#1,minimum size=0.5cm},y=0.6cm,font=sffamily]
begin{scope}[rotate=90]
node[cir=blue!50!black] (a1) at (0,0) {};
node[cir=blue!50!black] (a2) at (0,-1) {};
node[cir=blue!50!black] (a3) at (0,-2) {};
node[cir=blue!50!black] (a4) at (0,-4) {};
node[cir=blue] (b1) at (2,0) {};
node[cir=blue] (b2) at (2,-1) {};
node[cir=blue] (b3) at (2,-2) {};
node[cir=blue] (b4) at (2,-4) {};
node[cir=blue] (c1) at (4,0) {};
node[cir=blue] (c2) at (4,-1) {};
node[cir=blue] (c3) at (4,-2) {};
node[cir=blue] (c4) at (4,-4) {};
node[cir=blue!50] (d1) at (6,0) {};
node[cir=blue!50] (d2) at (6,-1) {};
node[cir=blue!50] (d3) at (6,-2) {};
node[cir=blue!50] (d4) at (6,-4) {};
node[cir=blue!50] (e1) at (8,0) {};
node[cir=blue!50] (e2) at (8,-1) {};
node[cir=blue!50] (e3) at (8,-2) {};
node[cir=blue!50] (e4) at (8,-4) {};
node[cir=green!50!black] (x) at (10,-2) {};
foreach i/j in {a/b,c/d} {
foreach cnto in {1,2,3,4} {
foreach cntt in {1,2,3,4} {
draw[-latex] (icnto.north)--(jcntt.south);
}
}
}
foreach i/j in {b/c,d/e} {
foreach cnt in {1,2,3,4} draw[-latex] (icnt)--(jcnt);
}
foreach i in {1,2,3,4} draw[-latex] (ei.north)--(x.south);
foreach i [count=j] in {a,b,c,d,e} {
draw ({2*(j-1)},-3) node {$cdots$};
}
end{scope}
draw (a1) node[blue!50!black,left=1em] {Input Variable Size};
draw (b1) node[blue,left=1em] {Hidden 1 -- 128 Units};
draw (c1) node[blue,left=1em] {Now I think you can do the rest};
draw (d1) node[blue!50,left=1em] {Anyway, happy $pi$ day!};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer



















  • 1





    I hope you sleep well now...

    – Thruston
    Mar 14 at 17:24











  • I hope the sandman (en.wikipedia.org/wiki/Sandman) will bring you many upvotes :)

    – samcarter
    Mar 14 at 17:59











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479504%2ftikz-drawing-fully-connected-neural-network-vertically%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5














YouTube comment section: One last video before bed.
Me: One last TikZ picture before bed.





Here is a good starting point



documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[cir/.style={circle,draw=#1,minimum size=0.5cm},y=0.6cm,font=sffamily]
begin{scope}[rotate=90]
node[cir=blue!50!black] (a1) at (0,0) {};
node[cir=blue!50!black] (a2) at (0,-1) {};
node[cir=blue!50!black] (a3) at (0,-2) {};
node[cir=blue!50!black] (a4) at (0,-4) {};
node[cir=blue] (b1) at (2,0) {};
node[cir=blue] (b2) at (2,-1) {};
node[cir=blue] (b3) at (2,-2) {};
node[cir=blue] (b4) at (2,-4) {};
node[cir=blue] (c1) at (4,0) {};
node[cir=blue] (c2) at (4,-1) {};
node[cir=blue] (c3) at (4,-2) {};
node[cir=blue] (c4) at (4,-4) {};
node[cir=blue!50] (d1) at (6,0) {};
node[cir=blue!50] (d2) at (6,-1) {};
node[cir=blue!50] (d3) at (6,-2) {};
node[cir=blue!50] (d4) at (6,-4) {};
node[cir=blue!50] (e1) at (8,0) {};
node[cir=blue!50] (e2) at (8,-1) {};
node[cir=blue!50] (e3) at (8,-2) {};
node[cir=blue!50] (e4) at (8,-4) {};
node[cir=green!50!black] (x) at (10,-2) {};
foreach i/j in {a/b,c/d} {
foreach cnto in {1,2,3,4} {
foreach cntt in {1,2,3,4} {
draw[-latex] (icnto.north)--(jcntt.south);
}
}
}
foreach i/j in {b/c,d/e} {
foreach cnt in {1,2,3,4} draw[-latex] (icnt)--(jcnt);
}
foreach i in {1,2,3,4} draw[-latex] (ei.north)--(x.south);
foreach i [count=j] in {a,b,c,d,e} {
draw ({2*(j-1)},-3) node {$cdots$};
}
end{scope}
draw (a1) node[blue!50!black,left=1em] {Input Variable Size};
draw (b1) node[blue,left=1em] {Hidden 1 -- 128 Units};
draw (c1) node[blue,left=1em] {Now I think you can do the rest};
draw (d1) node[blue!50,left=1em] {Anyway, happy $pi$ day!};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer



















  • 1





    I hope you sleep well now...

    – Thruston
    Mar 14 at 17:24











  • I hope the sandman (en.wikipedia.org/wiki/Sandman) will bring you many upvotes :)

    – samcarter
    Mar 14 at 17:59
















5














YouTube comment section: One last video before bed.
Me: One last TikZ picture before bed.





Here is a good starting point



documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[cir/.style={circle,draw=#1,minimum size=0.5cm},y=0.6cm,font=sffamily]
begin{scope}[rotate=90]
node[cir=blue!50!black] (a1) at (0,0) {};
node[cir=blue!50!black] (a2) at (0,-1) {};
node[cir=blue!50!black] (a3) at (0,-2) {};
node[cir=blue!50!black] (a4) at (0,-4) {};
node[cir=blue] (b1) at (2,0) {};
node[cir=blue] (b2) at (2,-1) {};
node[cir=blue] (b3) at (2,-2) {};
node[cir=blue] (b4) at (2,-4) {};
node[cir=blue] (c1) at (4,0) {};
node[cir=blue] (c2) at (4,-1) {};
node[cir=blue] (c3) at (4,-2) {};
node[cir=blue] (c4) at (4,-4) {};
node[cir=blue!50] (d1) at (6,0) {};
node[cir=blue!50] (d2) at (6,-1) {};
node[cir=blue!50] (d3) at (6,-2) {};
node[cir=blue!50] (d4) at (6,-4) {};
node[cir=blue!50] (e1) at (8,0) {};
node[cir=blue!50] (e2) at (8,-1) {};
node[cir=blue!50] (e3) at (8,-2) {};
node[cir=blue!50] (e4) at (8,-4) {};
node[cir=green!50!black] (x) at (10,-2) {};
foreach i/j in {a/b,c/d} {
foreach cnto in {1,2,3,4} {
foreach cntt in {1,2,3,4} {
draw[-latex] (icnto.north)--(jcntt.south);
}
}
}
foreach i/j in {b/c,d/e} {
foreach cnt in {1,2,3,4} draw[-latex] (icnt)--(jcnt);
}
foreach i in {1,2,3,4} draw[-latex] (ei.north)--(x.south);
foreach i [count=j] in {a,b,c,d,e} {
draw ({2*(j-1)},-3) node {$cdots$};
}
end{scope}
draw (a1) node[blue!50!black,left=1em] {Input Variable Size};
draw (b1) node[blue,left=1em] {Hidden 1 -- 128 Units};
draw (c1) node[blue,left=1em] {Now I think you can do the rest};
draw (d1) node[blue!50,left=1em] {Anyway, happy $pi$ day!};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer



















  • 1





    I hope you sleep well now...

    – Thruston
    Mar 14 at 17:24











  • I hope the sandman (en.wikipedia.org/wiki/Sandman) will bring you many upvotes :)

    – samcarter
    Mar 14 at 17:59














5












5








5







YouTube comment section: One last video before bed.
Me: One last TikZ picture before bed.





Here is a good starting point



documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[cir/.style={circle,draw=#1,minimum size=0.5cm},y=0.6cm,font=sffamily]
begin{scope}[rotate=90]
node[cir=blue!50!black] (a1) at (0,0) {};
node[cir=blue!50!black] (a2) at (0,-1) {};
node[cir=blue!50!black] (a3) at (0,-2) {};
node[cir=blue!50!black] (a4) at (0,-4) {};
node[cir=blue] (b1) at (2,0) {};
node[cir=blue] (b2) at (2,-1) {};
node[cir=blue] (b3) at (2,-2) {};
node[cir=blue] (b4) at (2,-4) {};
node[cir=blue] (c1) at (4,0) {};
node[cir=blue] (c2) at (4,-1) {};
node[cir=blue] (c3) at (4,-2) {};
node[cir=blue] (c4) at (4,-4) {};
node[cir=blue!50] (d1) at (6,0) {};
node[cir=blue!50] (d2) at (6,-1) {};
node[cir=blue!50] (d3) at (6,-2) {};
node[cir=blue!50] (d4) at (6,-4) {};
node[cir=blue!50] (e1) at (8,0) {};
node[cir=blue!50] (e2) at (8,-1) {};
node[cir=blue!50] (e3) at (8,-2) {};
node[cir=blue!50] (e4) at (8,-4) {};
node[cir=green!50!black] (x) at (10,-2) {};
foreach i/j in {a/b,c/d} {
foreach cnto in {1,2,3,4} {
foreach cntt in {1,2,3,4} {
draw[-latex] (icnto.north)--(jcntt.south);
}
}
}
foreach i/j in {b/c,d/e} {
foreach cnt in {1,2,3,4} draw[-latex] (icnt)--(jcnt);
}
foreach i in {1,2,3,4} draw[-latex] (ei.north)--(x.south);
foreach i [count=j] in {a,b,c,d,e} {
draw ({2*(j-1)},-3) node {$cdots$};
}
end{scope}
draw (a1) node[blue!50!black,left=1em] {Input Variable Size};
draw (b1) node[blue,left=1em] {Hidden 1 -- 128 Units};
draw (c1) node[blue,left=1em] {Now I think you can do the rest};
draw (d1) node[blue!50,left=1em] {Anyway, happy $pi$ day!};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer













YouTube comment section: One last video before bed.
Me: One last TikZ picture before bed.





Here is a good starting point



documentclass[tikz]{standalone}
begin{document}
begin{tikzpicture}[cir/.style={circle,draw=#1,minimum size=0.5cm},y=0.6cm,font=sffamily]
begin{scope}[rotate=90]
node[cir=blue!50!black] (a1) at (0,0) {};
node[cir=blue!50!black] (a2) at (0,-1) {};
node[cir=blue!50!black] (a3) at (0,-2) {};
node[cir=blue!50!black] (a4) at (0,-4) {};
node[cir=blue] (b1) at (2,0) {};
node[cir=blue] (b2) at (2,-1) {};
node[cir=blue] (b3) at (2,-2) {};
node[cir=blue] (b4) at (2,-4) {};
node[cir=blue] (c1) at (4,0) {};
node[cir=blue] (c2) at (4,-1) {};
node[cir=blue] (c3) at (4,-2) {};
node[cir=blue] (c4) at (4,-4) {};
node[cir=blue!50] (d1) at (6,0) {};
node[cir=blue!50] (d2) at (6,-1) {};
node[cir=blue!50] (d3) at (6,-2) {};
node[cir=blue!50] (d4) at (6,-4) {};
node[cir=blue!50] (e1) at (8,0) {};
node[cir=blue!50] (e2) at (8,-1) {};
node[cir=blue!50] (e3) at (8,-2) {};
node[cir=blue!50] (e4) at (8,-4) {};
node[cir=green!50!black] (x) at (10,-2) {};
foreach i/j in {a/b,c/d} {
foreach cnto in {1,2,3,4} {
foreach cntt in {1,2,3,4} {
draw[-latex] (icnto.north)--(jcntt.south);
}
}
}
foreach i/j in {b/c,d/e} {
foreach cnt in {1,2,3,4} draw[-latex] (icnt)--(jcnt);
}
foreach i in {1,2,3,4} draw[-latex] (ei.north)--(x.south);
foreach i [count=j] in {a,b,c,d,e} {
draw ({2*(j-1)},-3) node {$cdots$};
}
end{scope}
draw (a1) node[blue!50!black,left=1em] {Input Variable Size};
draw (b1) node[blue,left=1em] {Hidden 1 -- 128 Units};
draw (c1) node[blue,left=1em] {Now I think you can do the rest};
draw (d1) node[blue!50,left=1em] {Anyway, happy $pi$ day!};
end{tikzpicture}
end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 14 at 17:23









JouleVJouleV

7,38721952




7,38721952








  • 1





    I hope you sleep well now...

    – Thruston
    Mar 14 at 17:24











  • I hope the sandman (en.wikipedia.org/wiki/Sandman) will bring you many upvotes :)

    – samcarter
    Mar 14 at 17:59














  • 1





    I hope you sleep well now...

    – Thruston
    Mar 14 at 17:24











  • I hope the sandman (en.wikipedia.org/wiki/Sandman) will bring you many upvotes :)

    – samcarter
    Mar 14 at 17:59








1




1





I hope you sleep well now...

– Thruston
Mar 14 at 17:24





I hope you sleep well now...

– Thruston
Mar 14 at 17:24













I hope the sandman (en.wikipedia.org/wiki/Sandman) will bring you many upvotes :)

– samcarter
Mar 14 at 17:59





I hope the sandman (en.wikipedia.org/wiki/Sandman) will bring you many upvotes :)

– samcarter
Mar 14 at 17:59


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f479504%2ftikz-drawing-fully-connected-neural-network-vertically%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to send String Array data to Server using php in android

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Is anime1.com a legal site for watching anime?