Exemplo n.º 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())
Exemplo n.º 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))
Exemplo n.º 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()
Exemplo n.º 4
0
def test_random_(test_data):
    data = test_data(SHAPE)
    imputed = impy.random(data)
    return_na_check(imputed)
Exemplo n.º 5
0
def test_return_type():
    """Check return type, should return an np.ndarray"""
    imputed = impy.random(data_m)
    assert isinstance(imputed, np.ndarray)