Skip to content

Commit 507d6b3

Browse files
author
gmartinonQM
committed
FIX typos
1 parent 0209bc8 commit 507d6b3

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

HISTORY.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ History
1010
* Add MNIST example for classification
1111
* Add cross-conformal for classification
1212
* Add `notebooks` folder containing notebooks used for generating documentation tutorials
13-
* Uniformize the use of matrix k_ and add an argument "ensemble" to method
14-
"predict" in regression.py
13+
* Uniformize the use of matrix k_ and add an argument "ensemble" to method "predict" in regression.py
1514
* Add replication of the Chen Xu's tutorial testing Jackknife+aB vs Jackknife+
1615
* Add Jackknife+-after-Bootstrap documentation
1716
* Improve scikit-learn pipelines compatibility

examples/classification/2-advanced-analysis/plot_digits_classification.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,20 +209,20 @@ def get_datasets(dataset: Any) -> Tuple[
209209
# the "real" coverage obtained on the test set.
210210

211211
coverages1 = [
212-
classification_coverage_score(y_test1, y_ps1[:, :, alpha_])
213-
for alpha_, _ in enumerate(alpha)
212+
classification_coverage_score(y_test1, y_ps1[:, :, i])
213+
for i, _ in enumerate(alpha)
214214
]
215215
coverages2 = [
216-
classification_coverage_score(y_test2, y_ps2[:, :, alpha_])
217-
for alpha_, _ in enumerate(alpha)
216+
classification_coverage_score(y_test2, y_ps2[:, :, i])
217+
for i, _ in enumerate(alpha)
218218
]
219219
widths1 = [
220-
classification_mean_width_score(y_ps1[:, :, alpha_])
221-
for alpha_, _ in enumerate(alpha)
220+
classification_mean_width_score(y_ps1[:, :, i])
221+
for i, _ in enumerate(alpha)
222222
]
223223
widths2 = [
224-
classification_mean_width_score(y_ps2[:, :, alpha_])
225-
for alpha_, _ in enumerate(alpha)
224+
classification_mean_width_score(y_ps2[:, :, i])
225+
for i, _ in enumerate(alpha)
226226
]
227227

228228
_, axes = plt.subplots(nrows=1, ncols=2, figsize=(12, 5))

0 commit comments

Comments
 (0)