Skip to content

Commit bda81cc

Browse files
committed
Fix d2_tweedie_score return
The docs say float or ndarray but there is not ndarray return path.
1 parent 849eb4f commit bda81cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stubs/sklearn/metrics/_regression.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def d2_tweedie_score(
232232
*,
233233
sample_weight: None | ArrayLike = None,
234234
power: Float = 0,
235+
) -> float: ...
235236
@overload
236237
def d2_pinball_score(
237238
y_true: MatrixLike | ArrayLike,

0 commit comments

Comments
 (0)