Skip to content

Commit 995e665

Browse files
committed
chore: update indentation
1 parent 051d30c commit 995e665

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

examples/regression/1-quickstart/plot_cqr_symmetry_difference.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838

3939
# Calculate coverage scores
4040
coverage_score_sym = regression_coverage_score(
41-
y, y_pis_sym[:, 0], y_pis_sym[:, 1]
41+
y, y_pis_sym[:, 0], y_pis_sym[:, 1]
4242
)
4343
coverage_score_asym = regression_coverage_score(
44-
y, y_pis_asym[:, 0], y_pis_asym[:, 1]
44+
y, y_pis_asym[:, 0], y_pis_asym[:, 1]
4545
)
4646

4747
# Sort the values for plotting
@@ -68,15 +68,15 @@
6868
plt.plot(X_sorted, y_pis_sym_sorted[:, 0], color="C1", ls="--")
6969
plt.plot(X_sorted, y_pis_sym_sorted[:, 1], color="C1", ls="--")
7070
plt.fill_between(
71-
X_sorted.ravel(),
72-
y_pis_sym_sorted[:, 0].ravel(),
73-
y_pis_sym_sorted[:, 1].ravel(),
74-
alpha=0.2,
71+
X_sorted.ravel(),
72+
y_pis_sym_sorted[:, 0].ravel(),
73+
y_pis_sym_sorted[:, 1].ravel(),
74+
alpha=0.2,
7575
)
7676
plt.title(
77-
f"Symmetric Intervals\n"
78-
f"Target and effective coverages for "
79-
f"alpha={alpha:.2f}: ({1-alpha:.3f}, {coverage_score_sym:.3f})"
77+
f"Symmetric Intervals\n"
78+
f"Target and effective coverages for "
79+
f"alpha={alpha:.2f}: ({1-alpha:.3f}, {coverage_score_sym:.3f})"
8080
)
8181

8282
# Plot asymmetric prediction intervals
@@ -88,15 +88,15 @@
8888
plt.plot(X_sorted, y_pis_asym_sorted[:, 0], color="C2", ls="--")
8989
plt.plot(X_sorted, y_pis_asym_sorted[:, 1], color="C2", ls="--")
9090
plt.fill_between(
91-
X_sorted.ravel(),
92-
y_pis_asym_sorted[:, 0].ravel(),
93-
y_pis_asym_sorted[:, 1].ravel(),
94-
alpha=0.2,
91+
X_sorted.ravel(),
92+
y_pis_asym_sorted[:, 0].ravel(),
93+
y_pis_asym_sorted[:, 1].ravel(),
94+
alpha=0.2,
9595
)
9696
plt.title(
97-
f"Asymmetric Intervals\n"
98-
f"Target and effective coverages for "
99-
f"alpha={alpha:.2f}: ({1-alpha:.3f}, {coverage_score_asym:.3f})"
97+
f"Asymmetric Intervals\n"
98+
f"Target and effective coverages for "
99+
f"alpha={alpha:.2f}: ({1-alpha:.3f}, {coverage_score_asym:.3f})"
100100
)
101101
plt.tight_layout()
102102
plt.show()

0 commit comments

Comments
 (0)