e93c1a7e2d0a730c7de590b8a18eae09f313f161,dc_integration/distribution/gmm.py,GMM,predict,#GMM#Any#,12
Before Change
gaussian: Gaussian
def predict(self, x):
raise NotImplementedError
class GMMTrainer:
def __init__(self, eps=1e-10):
After Change
affiliation = np.zeros(affiliation_shape)
affiliation += np.log(self.weight)[..., :, None]
affiliation += self.gaussian.log_pdf(x)
affiliation = np.exp(affiliation)
denominator = np.maximum(
np.einsum("...kn->...n", affiliation)[..., None, :],
np.finfo(x.dtype).tiny,
)
affiliation /= denominator
return affiliation
class GMMTrainer:
def __init__(self, eps=1e-10):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: fgnt/pb_bss
Commit Name: e93c1a7e2d0a730c7de590b8a18eae09f313f161
Time: 2018-07-21
Author: mail@lukas-drude.de
File Name: dc_integration/distribution/gmm.py
Class Name: GMM
Method Name: predict
Project Name: SPFlow/SPFlow
Commit Name: 6967cc5df1801b8f5a01110417b38495896d75e0
Time: 2018-10-23
Author: nicola.dimauro@uniba.it
File Name: src/spn/structure/leaves/cltree/Inference.py
Class Name:
Method Name: cltree_likelihood
Project Name: drckf/paysage
Commit Name: 69d6360ca54fc95d3d9db5ca2b6dc5e895189336
Time: 2017-02-26
Author: charleskennethfisher@gmail.com
File Name: paysage/backends/pytorch_backend/nonlinearity.py
Class Name:
Method Name: exp
Project Name: geomstats/geomstats
Commit Name: 36bf1cd036d852d10b189727d43fee6ee0b6c66c
Time: 2020-04-02
Author: 62605255+pchauchat@users.noreply.github.com
File Name: geomstats/geometry/special_euclidean.py
Class Name: SpecialEuclidean
Method Name: exp_from_identity
Project Name: drckf/paysage
Commit Name: f9dd1ba1fcff2fed44153fd75cbcf65e6ccee1af
Time: 2017-02-26
Author: charleskennethfisher@gmail.com
File Name: paysage/backends/pytorch_backend/nonlinearity.py
Class Name:
Method Name: softplus