79b734c11220707efc720d4998208d0abf7955d8,hmmlearn/hmm.py,GMMHMM,_init_covar_priors,#GMMHMM#,661

Before Change


            if "psis" not in self.covars_prior:
                self.covars_prior["psis"] = np.asarray(0.0)
            if "nus" not in self.covars_prior:
                self.covars_prior["nus"] = np.asarray(
                    -(self.n_mix + self.n_features + 1.0)
                )
        elif self.covariance_type == "diag":
            if "alphas" not in self.covars_prior:
                self.covars_prior["alphas"] = np.asarray(-1.5)
            if "betas" not in self.covars_prior:
                self.covars_prior["betas"] = np.asarray(0.0)
        elif self.covariance_type == "spherical":
            if "alphas" not in self.covars_prior:
                self.covars_prior["alphas"] = np.asarray(
                    -(self.n_mix + 2.0) / 2.0

After Change


        elif self.covariance_type == "diag":
            if self.covars_prior is None:
                self.covars_prior = -1.5
            if self.covars_weight is None:
                self.covars_weight = 0.0
        elif self.covariance_type == "spherical":
            if self.covars_prior is None:
                self.covars_prior = -(self.n_mix + 2.0) / 2.0
            if self.covars_weight is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: hmmlearn/hmmlearn
Commit Name: 79b734c11220707efc720d4998208d0abf7955d8
Time: 2016-08-11
Author: superbobry@gmail.com
File Name: hmmlearn/hmm.py
Class Name: GMMHMM
Method Name: _init_covar_priors


Project Name: dit/dit
Commit Name: a1890b56835ef626b1a32edcaf28c1e2b10baa48
Time: 2015-03-19
Author: chebee7i@gmail.com
File Name: dit/algorithms/maxentropyfw.py
Class Name:
Method Name: isolate_zeros


Project Name: hmmlearn/hmmlearn
Commit Name: 79b734c11220707efc720d4998208d0abf7955d8
Time: 2016-08-11
Author: superbobry@gmail.com
File Name: hmmlearn/hmm.py
Class Name: GMMHMM
Method Name: _init_covar_priors


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: a8d354aa3f1d796ebfcf41586af1eb925f229ecc
Time: 2020-04-01
Author: 17923265+jacobmontiel@users.noreply.github.com
File Name: src/skmultiflow/lazy/knn_adwin.py
Class Name: KNNADWINClassifier
Method Name: partial_fit