Skip to content

Commit 1002de2

Browse files
moutaiagramfort
authored andcommitted
Fix small typos in docstring and comment (scikit-learn#6840)
1 parent d161bfa commit 1002de2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/calibration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class CalibratedClassifierCV(BaseEstimator, ClassifierMixin):
3333
cross-validation generator and the test set is used for calibration.
3434
The probabilities for each of the folds are then averaged
3535
for prediction. In case that cv="prefit" is passed to __init__,
36-
it is it is assumed that base_estimator has been
37-
fitted already and all data is used for calibration. Note that
38-
data for fitting the classifier and for calibrating it must be disjoint.
36+
it is assumed that base_estimator has been fitted already and all
37+
data is used for calibration. Note that data for fitting the
38+
classifier and for calibrating it must be disjoint.
3939
4040
Read more in the :ref:`User Guide <calibration>`.
4141
@@ -126,7 +126,7 @@ def fit(self, X, y, sample_weight=None):
126126
lb = LabelBinarizer().fit(y)
127127
self.classes_ = lb.classes_
128128

129-
# Check that we each cross-validation fold can have at least one
129+
# Check that each cross-validation fold can have at least one
130130
# example per class
131131
n_folds = self.cv if isinstance(self.cv, int) \
132132
else self.cv.n_folds if hasattr(self.cv, "n_folds") else None

0 commit comments

Comments
 (0)