We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e319bb7 commit db0df06Copy full SHA for db0df06
1 file changed
tests/test_kliep.py
@@ -54,7 +54,7 @@ def test_fit_estimator_bootstrap_index():
54
model = KLIEP(DummyEstimator(),
55
sigmas=[10, 100])
56
model.fit_estimator(Xs, ys_, sample_weight=np.random.random(len(ys)))
57
- assert len(set(list(model.estimator_.y.ravel())) & set(list(ys_.ravel()))) > 50
+ assert len(set(list(model.estimator_.y.ravel())) & set(list(ys_.ravel()))) > 33
58
59
60
def test_fit_estimator_sample_weight_zeros():
@@ -63,4 +63,4 @@ def test_fit_estimator_sample_weight_zeros():
63
64
65
model.fit_estimator(Xs, ys_, sample_weight=np.zeros(len(ys)))
66
0 commit comments