a52495555203d7fef9725345428a63eeed5b75db,astroML/density_estimation/gauss_mixture.py,GaussianMixture1D,pdf,#GaussianMixture1D#,32
Before Change
Compute probability distribution
// logprob, responsibilities = self._gmm.eval(x)
if len(x.shape) == 1:
x = x.reshape((x.shape[0], 1))
logprob, responsibilities = self._gmm.score_samples(x)
return np.exp(logprob)
def pdf_individual(self, x):
After Change
Compute probability distribution
// logprob, responsibilities = self._gmm.eval(x)
if x.ndim == 1:
x = x[:, np.newaxis]
logprob, responsibilities = self._gmm.score_samples(x)
return np.exp(logprob)
def pdf_individual(self, x):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: astroML/astroML
Commit Name: a52495555203d7fef9725345428a63eeed5b75db
Time: 2015-07-15
Author: nhuntwalker@gmail.com
File Name: astroML/density_estimation/gauss_mixture.py
Class Name: GaussianMixture1D
Method Name: pdf
Project Name: UFAL-DSG/tgen
Commit Name: 357d1611c7a222b55a5b4f2b3399bde14a9ac0ea
Time: 2015-05-27
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/nn.py
Class Name: MaxPool1DLayer
Method Name: connect
Project Name: UFAL-DSG/tgen
Commit Name: 930f22933523259b1a152dc3174312357fb99fb9
Time: 2015-06-15
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/nn.py
Class Name: MaxPool1DLayer
Method Name: connect
Project Name: astroML/astroML
Commit Name: a52495555203d7fef9725345428a63eeed5b75db
Time: 2015-07-15
Author: nhuntwalker@gmail.com
File Name: astroML/density_estimation/gauss_mixture.py
Class Name: GaussianMixture1D
Method Name: pdf_individual