I am new to Theano and Lasagne. I followed the official doc and can walk through the tutorial successfully. However, I have few questions.
What's the format of the saved model? what is .npz file? How to interpret it?
np.savez('model.npz', *lasagne.layers.get_all_param_values(network))
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?
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)
I have figured out the answer, and paste my script for your reference.