c15d91b235b77b177377ea382bdf9d4149e52ca5,theanolm/src/rnnlm.py,RNNLM,load_params,#RNNLM#Any#,179

Before Change


			self.error_history = []
			warnings.warn("Training error history was not found from the archive.")
		else:
			saved_error_history = data["error_history"].tolist()
			// If the error history was empty when the state was saved,
			// ndarray.tolist() will return None.
			if not saved_error_history is None:
				self.error_history = saved_error_history

After Change


		num_updated = 0
		for name in self.params:
			if not name in data:
				raise InputError("parameter %s was not found from %s." % (name, path))
			self.params[name].set_value(data[name])
			num_updated += 1
		print("Read %d parameter values from %s." % (num_updated, path))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: senarvi/theanolm
Commit Name: c15d91b235b77b177377ea382bdf9d4149e52ca5
Time: 2015-09-20
Author: seppo.git@marjaniemi.com
File Name: theanolm/src/rnnlm.py
Class Name: RNNLM
Method Name: load_params


Project Name: dPys/PyNets
Commit Name: f4a629a3b9437fafb882793f59014f6ce31e86aa
Time: 2018-07-18
Author: dpisner@utexas.edu
File Name: pynets/nodemaker.py
Class Name:
Method Name: WB_fetch_nodes_and_labels


Project Name: dPys/PyNets
Commit Name: f4a629a3b9437fafb882793f59014f6ce31e86aa
Time: 2018-07-18
Author: dpisner@utexas.edu
File Name: pynets/nodemaker.py
Class Name:
Method Name: RSN_fetch_nodes_and_labels