예제 #1
0
 def test_impute_missing_values(self):
     """After imputation, no NaN's should exist"""
     imputed = impy.random(self.data_m)
     self.assertFalse(np.isnan(imputed).any())
예제 #2
0
 def test_return_type(self):
     """Check return type, should return an np.ndarray"""
     imputed = impy.random(self.data_m)
     self.assertTrue(isinstance(imputed, np.ndarray))
예제 #3
0
def test_impute_missing_values():
    """After imputation, no NaN's should exist"""
    imputed = impy.random(data_m)
    assert not np.isnan(imputed).any()
예제 #4
0
def test_random_(test_data):
    data = test_data(SHAPE)
    imputed = impy.random(data)
    return_na_check(imputed)
예제 #5
0
def test_return_type():
    """Check return type, should return an np.ndarray"""
    imputed = impy.random(data_m)
    assert isinstance(imputed, np.ndarray)