90787dc646305306274fb85fefbfa49d7458cda8,cde/density_estimator/LSCDE.py,LSConditionalDensityEstimation,pdf,#LSConditionalDensityEstimation#Any#Any#,93
  
 
Before Change 
    X_normalized, Y_normalized = self._normalize(X, Y)
    p = np.dot(self.alpha.T, self._gaussian_kernel(X_normalized, Y_normalized).T)
    p_normalization = (np.sqrt(2*np.pi) * self.bw) ** self.ndim_y * np.dot(self.alpha.T, self._gaussian_kernel(X_normalized).T) 
    return np.squeeze(p / p_normalization / np.product(self.y_std)) 
  def predict_density(self, X, Y=None, resolution=50):
     Computes conditional density p(y|x) over a predefined grid of y target values
After Change 
    if n_samples > MULTIPROC_THRESHOLD:
      return execute_batch_async_pdf(self._pdf, X, Y, n_jobs=self.n_jobs)
    else:
      return self._pdf(X, Y) 
  def predict_density(self, X, Y=None, resolution=50):
     Computes conditional density p(y|x) over a predefined grid of y target values
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances  Project Name: freelunchtheorem/Conditional_Density_Estimation
 Commit Name: 90787dc646305306274fb85fefbfa49d7458cda8
 Time: 2019-01-16
 Author: jonas.rothfuss@gmx.de
 File Name: cde/density_estimator/LSCDE.py
 Class Name: LSConditionalDensityEstimation
 Method Name: pdf
 Project Name: nipy/dipy
 Commit Name: f698c4dbfc266bae9c1d1ceb0d906863c9b54e2e
 Time: 2013-05-14
 Author: caruyer@gmail.com
 File Name: dipy/core/sphere_stats.py
 Class Name: 
 Method Name: random_uniform_on_sphere
 Project Name: cornellius-gp/gpytorch
 Commit Name: 8c40ed8fb56baef7ab5ce8d5ed85bb10e4f09174
 Time: 2020-12-16
 Author: wjm363@nyu.edu
 File Name: gpytorch/lazy/kronecker_product_lazy_tensor.py
 Class Name: KroneckerProductLazyTensor
 Method Name: root_decomposition
 Project Name: freelunchtheorem/Conditional_Density_Estimation
 Commit Name: 33ee09c30ce5979b5f5074e08510a31ef5fa663c
 Time: 2019-01-30
 Author: jonas.rothfuss@gmx.de
 File Name: cde/density_estimator/LSCDE.py
 Class Name: LSConditionalDensityEstimation
 Method Name: _pdf