47f8fe9404071e5d30ef5aea8fb96539eb0a82c3,fancyimpute/MICE.py,MICE,perform_imputation_round,#MICE#Any#Any#Any#Any#,147
Before Change
if self.min_value is not None:
imputed_values[imputed_values < self.min_value] = self.min_value
if self.max_value is not None:
imputed_values[imputed_values > self.max_value] = self.max_value
X_filled[missing_row_mask_for_this_col, col_idx] = imputed_values
return X_filled
def initialize(self, X, missing_mask, observed_mask, visit_indices):
After Change
sigmas = sigmas_squared
np.sqrt(sigmas_squared, out=sigmas)
imputed_values = np.random.normal(mus, sigmas)
imputed_values = self.clip(imputed_values)
X_filled[missing_row_mask_for_this_col, col_idx] = imputed_values
return X_filled
def initialize(self, X, missing_mask, observed_mask, visit_indices):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: iskandr/fancyimpute
Commit Name: 47f8fe9404071e5d30ef5aea8fb96539eb0a82c3
Time: 2016-01-28
Author: alex.rubinsteyn@gmail.com
File Name: fancyimpute/MICE.py
Class Name: MICE
Method Name: perform_imputation_round
Project Name: iskandr/fancyimpute
Commit Name: 47f8fe9404071e5d30ef5aea8fb96539eb0a82c3
Time: 2016-01-28
Author: alex.rubinsteyn@gmail.com
File Name: fancyimpute/soft_impute.py
Class Name: SoftImpute
Method Name: solve
Project Name: openai/gym
Commit Name: 113abbfce2d643783d0aed08b500d909700a311c
Time: 2016-08-30
Author: pepper.daniel@gmail.com
File Name: gym/envs/classic_control/mountain_car.py
Class Name: MountainCarEnv
Method Name: _step