title: Lasagne/nolearn autoencoder - how to get hidden layer output?
body: <p>I've trained an autoencoder using lasagne/nolearn. Suppose the network layers are [500, 100, 100, 500]. I've trained the neural net like so:</p>
  
  <pre><code>net.fit(X, X)
  </code></pre>
  
  <p>I want to do something like the following:</p>
  
  <pre><code>net.predict(X, layer=2)
  </code></pre>
  
  <p>so I'll get the suppressed representation of my data. So, if my initial data have a shape [10000, 500], the resulting data will be [10000, 100].</p>
  
  <p>I searched but could not find how to do that. 
  Is it possible with lasagne/nolearn?</p>