码迷,mamicode.com
首页 > 其他好文 > 详细

lasagne保存网络参数

时间:2016-01-05 15:34:26      阅读:554      评论:0      收藏:0      [点我收藏+]

标签:

# Optionally, you could now dump the network weights to a file like this:
# np.savez(‘model.npz‘, *lasagne.layers.get_all_param_values(network))
#
# And load them again later on like this:
# 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)

  

lasagne保存网络参数

标签:

原文地址:http://www.cnblogs.com/anyview/p/5102327.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!