c2333cd3917685075a239ff32a41594e21b2268e,recordlinkage/classifiers.py,BernoulliEMClassifier,learn,#BernoulliEMClassifier#Any#Any#Any#,507

Before Change


		
		// Default parameters
		if not params_init:
			params_init = {
				"p": 0.05,
				"m": {feature: {0: 0.1, 1:0.9} for feature in list(comparison_vectors)},
				"u": {feature: {0: 0.9, 1:0.1} for feature in list(comparison_vectors)}
			}
		
		self.classifier.p_init = params_init

		// Start training the classifier

After Change


		probs = self.algorithm.train(comparison_vectors.as_matrix())

		n_matches = int(self.algorithm.p*len(probs))
		self.p_threshold = numpy.sort(probs)[len(probs)-n_matches]

		prediction = self._decision_rule(probs, self.p_threshold)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: J535D165/recordlinkage
Commit Name: c2333cd3917685075a239ff32a41594e21b2268e
Time: 2016-05-22
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/classifiers.py
Class Name: BernoulliEMClassifier
Method Name: learn


Project Name: autorope/donkeycar
Commit Name: 4855f52cdcf0879baf2d62b6a71711f8653de4e6
Time: 2017-10-24
Author: wroscoe@gmail.com
File Name: donkeycar/management/tub.py
Class Name: TubsView
Method Name: get


Project Name: IDSIA/sacred
Commit Name: 5abd222c3dd71073a09a2de610cf814cfa88f928
Time: 2017-01-16
Author: qwlouse@gmail.com
File Name: sacred/observers/mongo.py
Class Name: MongoObserver
Method Name: insert