title: Theano/lasagne: how to predict with trained model
body: <p>I am new to Theano and Lasagne. I followed <a href="https://lasagne.readthedocs.io/en/latest/user/tutorial.html" rel="nofollow noreferrer">the official doc</a> and can walk through the tutorial successfully. However, I have few questions.</p>
  
  <ol>
  <li><p>What's the format of the saved model? what is .npz file? How to interpret it?</p>
  
  <p>np.savez('model.npz', *lasagne.layers.get_all_param_values(network))</p></li>
  <li><p>I found the following code snippet to reload the neural network model,but have no idea how to use this model to predict new sample? for example, I have a new image with size 28*28. How can I predict the digit number in this image?</p>
  
  <p>with np.load('model.npz') as f:
           param_values = [f['arr_%d' % i] for i in range(len(f.files))]
  lasagne.layers.set_all_param_values(network, param_values)</p></li>
  </ol>