934f26003a1b794a3a03ca824817fb1252dff270,hmmlearn/hmm.py,GMMHMM,_initialize_sufficient_statistics,#GMMHMM#,580
Before Change
def _initialize_sufficient_statistics(self):
stats = super(GMMHMM, self)._initialize_sufficient_statistics()
stats["norm"] = [np.zeros(g.weights_.shape) for g in self.gmms_]
stats["means"] = [np.zeros(np.shape(g.means_)) for g in self.gmms_]
stats["covars"] = [np.zeros(np.shape(g.covars_)) for g in self.gmms_]
return stats
After Change
stats = super(GMMHMM, self)._initialize_sufficient_statistics()
stats["n_samples"] = 0
stats["post_comp_mix"] = None
stats["post_mix_sum"] = np.zeros((self.n_components, self.n_mix))
stats["post_sum"] = np.zeros(self.n_components)
stats["samples"] = None
stats["centered"] = None
return stats
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances Project Name: hmmlearn/hmmlearn
Commit Name: 934f26003a1b794a3a03ca824817fb1252dff270
Time: 2016-07-09
Author: yanenkoalexandr@gmail.com
File Name: hmmlearn/hmm.py
Class Name: GMMHMM
Method Name: _initialize_sufficient_statistics
Project Name: scikit-image/scikit-image
Commit Name: f8d9a6c144ef84bad2478a4ba4eedb1c559274e0
Time: 2020-11-11
Author: rfezzani@gmail.com
File Name: skimage/_shared/coord.py
Class Name:
Method Name: ensure_spacing
Project Name: scikit-learn-contrib/lightning
Commit Name: ab7bfeb252d0c9cbc4cd44a50f7757a53dbd7ecb
Time: 2012-02-29
Author: mathieu@mblondel.org
File Name: lightning/dual_cd.py
Class Name: DualSVC
Method Name: fit
Project Name: BVLC/caffe
Commit Name: 0db94786a7a463fed49825811fac903f1f1fc3c8
Time: 2014-08-05
Author: shelhamer@imaginarynumber.net
File Name: python/caffe/classifier.py
Class Name: Classifier
Method Name: predict