local methods in a class (python) : <p>I have a class "NN" which trains a neural network.
The problem is that some of the methods in the class can not be seen/used by the others, line 47 and 50 says "undefined name truncated_normal". I can create an "NN"-class, but when I try call say <code>nn.create_weights()</code> it throws an error, that "truncated_normal" does not exists. The same goes for <code>af(x)</code> and <code>daf(x)</code></p>

<p><a href="https://i.stack.imgur.com/jeO1Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jeO1Q.png" alt="enter image description here"></a></p>

<p>Any suggestions?</p>
