4f9f28da19466e18165feb5a3dab0e82f686b926,cde/density_estimator/LSCDE.py,LSConditionalDensityEstimation,_build_model,#LSConditionalDensityEstimation#Any#Any#,38
Before Change
self.n_centers = X.shape[0]
n_locs = self.n_centers
X_Y = np.concatenate([X,Y], axis=1)
centroids = sample_center_points(X_Y, method=self.center_sampling_method, k=n_locs, keep_edges=self.keep_edges)
self.centr_x = centroids[:,0:self.ndim_x]
self.centr_y = centroids[:,self.ndim_x:]
After Change
self.n_centers = min(self.n_centers, X.shape[0])
n_locs = self.n_centers
X_Y_normalized = np.concatenate(list(self._normalize(X, Y)), axis=1)
centroids = sample_center_points(X_Y_normalized, method=self.center_sampling_method, k=n_locs, keep_edges=self.keep_edges)
self.centr_x = centroids[:, 0:self.ndim_x]
self.centr_y = centroids[:, self.ndim_x:]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 4f9f28da19466e18165feb5a3dab0e82f686b926
Time: 2019-01-13
Author: jonas.rothfuss@gmx.de
File Name: cde/density_estimator/LSCDE.py
Class Name: LSConditionalDensityEstimation
Method Name: _build_model
Project Name: IndicoDataSolutions/finetune
Commit Name: 01713868bcc1b6edcdfb07a14fa5854b470cba32
Time: 2018-09-25
Author: benlt@hotmail.co.uk
File Name: finetune/base.py
Class Name: BaseModel
Method Name: _featurize
Project Name: deepchem/deepchem
Commit Name: 6595a42576f6f648ff7dabd78c53f1ab0001d8d4
Time: 2017-08-18
Author: peastman@stanford.edu
File Name: examples/low_data/toxcast_maml.py
Class Name:
Method Name: