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

Before Change


			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

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: 4

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: PIQuIL/QuCumber
Commit Name: 9587d62e956d178220d345ed16cab42263d8e971
Time: 2019-06-28
Author: emerali@users.noreply.github.com
File Name: qucumber/nn_states/complex_wavefunction.py
Class Name: ComplexWaveFunction
Method Name: __init__


Project Name: rail-berkeley/softlearning
Commit Name: cdf1e5890978ce2c487f3694dee26b9317592de2
Time: 2020-06-07
Author: kristian.hartikainen@gmail.com
File Name: examples/development/variants.py
Class Name:
Method Name: