b9fc4e3a1b9dc019640164b57d49ecba56364bfa,src/main.py,,validate,#,85

Before Change


	model = Model(loader.charList, useBeamSearch)

	// save characters of model for inference mode
	open(fnCharList, "w").write(str().join(loader.charList))

	print("Validate NN")
	loader.validationSet()

After Change


	
	// print validation result
	charErrorRate = numErr / numTotal
	print("Character error rate: %f%%" % (charErrorRate*100.0))
	return charErrorRate


def infer(model, fnImg):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: githubharald/SimpleHTR
Commit Name: b9fc4e3a1b9dc019640164b57d49ecba56364bfa
Time: 2018-08-16
Author: harald_scheidl@hotmail.com
File Name: src/main.py
Class Name:
Method Name: validate


Project Name: kk7nc/HDLTex
Commit Name: f4a2bc8a678258c5feae418218ac9a49905a91e1
Time: 2018-03-19
Author: kk7nc@virginia.edu
File Name: Data_helper.py
Class Name:
Method Name: loadData_Tokenizer


Project Name: snorkel-team/snorkel
Commit Name: b56a4b355dfc302fa449d223e065af3a7acac986
Time: 2018-05-03
Author: dnicholson329@gmail.com
File Name: snorkel/learning/pytorch/noise_aware_model.py
Class Name: TorchNoiseAwareModel
Method Name: save


Project Name: daavoo/pyntcloud
Commit Name: b1004960919dd1671da86dad6c465d4b6ad69d62
Time: 2017-04-07
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/plot/points.py
Class Name:
Method Name: plot_points