Skip to content

Commit

Permalink
UPD: better docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Cordier committed Nov 13, 2023
1 parent f259f4f commit f6a6e1d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mapie/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,8 @@ def coverage_width_based(
>>> y_preds_up = np.array([6, 9, 10, 12.5, 12])
>>> eta = 0.01
>>> alpha = 0.1
>>> print(np.round(coverage_width_based(y_true, \
y_preds_low, \
y_preds_up, \
eta, alpha) \
,2))
>>> cwb = coverage_width_based(y_true, y_preds_low, y_preds_up, eta, alpha)
>>> print(np.round(cwb ,2))
0.69
"""
y_true = cast(NDArray, column_or_1d(y_true))
Expand Down

0 comments on commit f6a6e1d

Please sign in to comment.