def save_model(self, epoch):
'''
Saves the current model using the epoch id to identify the file.
'''
self.model.save("%s_%d.model" % (self.model_name_prefix, epoch))
pickle.dump(self.data_processor, open("%s.dataproc" % self.model_name_prefix, "wb"))
pickle.dump(self.label_map, open("%s.labelmap" % self.model_name_prefix, "wb"))
评论列表
文章目录