Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
debonte committed Oct 22, 2024
1 parent 763139a commit 8e60acf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stubs/sklearn/metrics/_regression.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def mean_squared_error(
sample_weight: None | ArrayLike = None,
multioutput: ArrayLike | Literal["raw_values", "uniform_average", "uniform_average"] = "uniform_average",
) -> ndarray | Float: ...
@deprecated("`squared` is deprecated in 1.4 and will be removed in 1.6. Use `root_mean_squared_error` instead to calculate the root mean squared error.")
@deprecated(
"`squared` is deprecated in 1.4 and will be removed in 1.6. Use `root_mean_squared_error` instead to calculate the root mean squared error."
)
@overload
def mean_squared_error(
y_true: MatrixLike | ArrayLike,
Expand All @@ -82,7 +84,9 @@ def mean_squared_log_error(
sample_weight: None | ArrayLike = None,
multioutput: ArrayLike | Literal["raw_values", "uniform_average", "uniform_average"] = "uniform_average",
) -> float | ndarray: ...
@deprecated("`squared` is deprecated in 1.4 and will be removed in 1.6. Use `root_mean_squared_log_error` instead to calculate the root mean squared logarithmic error.")
@deprecated(
"`squared` is deprecated in 1.4 and will be removed in 1.6. Use `root_mean_squared_log_error` instead to calculate the root mean squared logarithmic error."
)
@overload
def mean_squared_log_error(
y_true: MatrixLike | ArrayLike,
Expand Down

0 comments on commit 8e60acf

Please sign in to comment.