Skip to content

Commit e0847fe

Browse files
author
Vianney Taquet
committed
Take LLA comments into account
1 parent 8c95127 commit e0847fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/classification/4-tutorials/plot_main-tutorial-classification.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
#
4141
# We estimate the prediction sets as follows :
4242
#
43-
# * First we generate a dataset with train, calibration and test, the model is
43+
# * Generate a dataset with train, calibration and test, the model is
4444
# fitted on the training set.
4545
#
46-
# * We set the conformal score :math:`S_i = \hat{f}(X_{i})_{y_i}` the softmax
46+
# * Set the conformal score :math:`S_i = \hat{f}(X_{i})_{y_i}` the softmax
4747
# output of the true class for each sample in the calibration set.
4848
#
49-
# * Then we define :math:`\hat{q}` as being the :math:`(n + 1) (\alpha) / n`
49+
# * Define :math:`\hat{q}` as being the :math:`(n + 1) (\alpha) / n`
5050
# previous quantile of :math:`S_{1}, ..., S_{n}`
5151
# (this is essentially the quantile :math:`\alpha`, but with a small sample
5252
# correction).
@@ -207,7 +207,7 @@ def plot_results(alphas, X, y_pred, y_ps):
207207
#
208208
# Let’s now study the effective coverage and the mean prediction set widths
209209
# as function of the :math:`1-\alpha` target coverage. To this aim, we use once
210-
# again the `.predict()` method of MAPIE to estimate predictions sets on a
210+
# again the ``predict`` method of MAPIE to estimate predictions sets on a
211211
# large number of :math:`\alpha` values.
212212

213213
alpha2 = np.arange(0.02, 0.98, 0.02)

0 commit comments

Comments
 (0)