Skip to content

Commit 40731a9

Browse files
UPD: remove useless cast
1 parent 41af001 commit 40731a9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mapie/estimator/classifier.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,6 @@ def fit(
337337
self.use_split_method_ = check_no_agg_cv(X, self.cv, self.no_agg_cv_)
338338
estimator = self.estimator
339339
n_samples = _num_samples(y)
340-
if y_enc is None:
341-
raise ValueError
342-
y_enc = cast(NDArray, y_enc)
343340

344341
# Computation
345342
if cv == "prefit":

0 commit comments

Comments
 (0)