b075341dfc3e719655647a97312c11426a285c26,density_estimator/LSCDE.py,LSConditionalDensityEstimation,fit,#LSConditionalDensityEstimation#Any#Any#,32
Before Change
def fit(self, X, Y, **kwargs):
// assert that both X an Y are 2D arrays with shape (n_samples, n_dim)
if X.ndim == 1:
X = np.expand_dims(X, axis=1)
if Y.ndim == 1:
Y = np.expand_dims(Y, axis=1)
self.ndim_y, self.ndim_x = Y.shape[1], X.shape[1]
assert X.ndim == Y.ndim == 2
// define the full model
After Change
def fit(self, X, Y, **kwargs):
// assert that both X an Y are 2D arrays with shape (n_samples, n_dim)
X, Y = handle_input_dimensionality(X, Y)
self.ndim_y, self.ndim_x = Y.shape[1], X.shape[1]
// define the full model
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: b075341dfc3e719655647a97312c11426a285c26
Time: 2018-01-04
Author: jonas.rothfuss@gmx.de
File Name: density_estimator/LSCDE.py
Class Name: LSConditionalDensityEstimation
Method Name: fit
Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: b075341dfc3e719655647a97312c11426a285c26
Time: 2018-01-04
Author: jonas.rothfuss@gmx.de
File Name: density_estimator/LSCDE.py
Class Name: LSConditionalDensityEstimation
Method Name: predict
Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: b075341dfc3e719655647a97312c11426a285c26
Time: 2018-01-04
Author: jonas.rothfuss@gmx.de
File Name: density_estimator/LSCDE.py
Class Name: LSConditionalDensityEstimation
Method Name: fit
Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: fa7ad1019e2becb181402efe13417c93b0bf17d6
Time: 2018-01-05
Author: jonas.rothfuss@gmx.de
File Name: density_estimator/NKDE.py
Class Name: NeighborKernelDensityEstimation
Method Name: fit