title: ValueError: setting an array element with a sequence. in a Neural Net
body: <p>i was following a tutorial about neural networks but trying to do it my way, but in the line:</p>
  
  <pre><code>_Y[i0,i1]=ForwardPass(Neural_net, np.array([[x0,x1]]))
  </code></pre>
  
  <p>the console say:</p>
  
  <blockquote>
    <p>ValueError: setting an array element with a sequence.</p>
  </blockquote>
  
  <p>The variables are defined in this block:</p>
  
  <pre><code>    res = 50
  
      _x0=np.linspace(-1.5,1.5,res)
      _x1=np.linspace(-1.5,1.5,res)
  
      _Y = np.zeros((res,res))
  
      for i0,x0 in enumerate(_x0):
        for i1,x1 in enumerate(_x1):
          _Y[i0,i1]=ForwardPass(Neural_net, np.array([[x0,x1]]))
  </code></pre>
  
  <p>here is the code of the ForwardPass Function:</p>
  
  <pre><code>def ForwardPass(neu_net, ent):
  
    outs=[ent]
  
    for l, layer in enumerate(neu_net):
  
      Sp=outs[-1]@neu_net[l].w + neu_net[l].b
      a=neu_net[l].act_f[0](Sp)
  
      outs.append(a)
    return outs
  </code></pre>