Skip to content

Commit b6b8392

Browse files
committed
FIX: linting one more time
1 parent e333152 commit b6b8392

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mapie/tests/test_common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def __init__(self) -> None:
255255
def get_signed_conformity_scores(
256256
self, y: ArrayLike, y_pred: ArrayLike, **kwargs
257257
) -> NDArray:
258-
return np.zeros(len(y))
258+
return np.array([])
259259

260260
def get_estimation_distribution(
261261
self, y_pred: ArrayLike, conformity_scores: ArrayLike, **kwargs
@@ -265,17 +265,17 @@ def get_estimation_distribution(
265265
conformity scores to make the estimated distribution
266266
inconsistent with the conformity score.
267267
"""
268-
return np.zeros(len(y_pred))
268+
return np.array([])
269269

270270
def get_conformity_scores(
271271
self, y: ArrayLike, y_pred: ArrayLike, **kwargs
272272
) -> NDArray:
273-
return np.zeros(len(y_pred))
273+
return np.array([])
274274

275275
def predict_set(
276276
self, X: NDArray, alpha_np: NDArray, **kwargs
277277
) -> NDArray:
278-
return np.zeros(len(X))
278+
return np.array([])
279279

280280
dcs = DummyConformityScore()
281281
dcs.get_signed_conformity_scores(y_toy, y_toy)

0 commit comments

Comments
 (0)