Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parameter matrix between layers #10

Open
forrestbao opened this issue Oct 22, 2020 · 2 comments
Open

parameter matrix between layers #10

forrestbao opened this issue Oct 22, 2020 · 2 comments

Comments

@forrestbao
Copy link

Hi, how to add a parameter matrix between layers, like the \Theta in Fig. 28 of neural-netowrks-ebook.pdf?

@igormorgado
Copy link

Use title in \linklayers. As the example blow:

\begin{neuralnetwork}[height=5]
	\newcommand{\nodetextclear}[2]{}
	\setdefaultnodetext{\nodetextclear}
	\inputlayer[count=4, bias=false, title=Input]
	\hiddenlayer[count=5, bias=false, title=Hidden, exclude={3,4}]
	\linklayers[title={$w_{ij}$},not to={3,4}]
	\outputlayer[count=3, title=Output]
	\linklayers[title={$w_{jk}$},not from={3,4}]
	\link[style={-, line width=2mm,line cap=round, dash pattern=on 0pt off 6mm, shorten <= 6mm, shorten >= 4mm}, from layer=1, from node=2, to layer=1, to node=5]
\end{neuralnetwork}

@singularitti
Copy link

How do you make these examples work @igormorgado? I cannot run them whenever I have exclude, not to, or not from in my code.

It tells me:

Undefined control sequence.
\pgffor@body ->\if \nn@excluded \nn@lastnode 
                                             \global \def \nn@dontdraw {1} \...
l.30 \end{neuralnetwork}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants