Skip to content

Commit 9b85022

Browse files
committed
FIX: test in Mondrian docstring
1 parent 2fa047d commit 9b85022

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mapie/mondrian.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ class MondrianCP(BaseEstimator):
7777
>>> partition_toy = [0, 0, 0, 0, 1, 1, 1, 1, 1]
7878
>>> clf = LogisticRegression(random_state=42).fit(X_toy, y_toy)
7979
>>> mapie = MondrianCP(MapieClassifier(estimator=clf, cv="prefit")).fit(
80-
... X_toy, y_toy, partition_toy)
80+
... X_toy, y_toy, partition=partition_toy
81+
... )
8182
>>> _, y_pi_mapie = mapie.predict(
82-
... X_toy, partition_toy, alpha=[0.1, 0.9])
83+
... X_toy, partition=partition_toy, alpha=[0.1, 0.9])
8384
>>> print(y_pi_mapie[:, :, 0].astype(bool))
8485
[[ True False False]
8586
[ True False False]

0 commit comments

Comments
 (0)