We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610a0ce commit 91885d4Copy full SHA for 91885d4
sklearn/metrics/_regression.py
@@ -976,6 +976,12 @@ def r2_score(
976
)
977
978
979
+@validate_params(
980
+ {
981
+ "y_true": ["array-like"],
982
+ "y_pred": ["array-like"],
983
+ }
984
+)
985
def max_error(y_true, y_pred):
986
"""
987
The max_error metric calculates the maximum residual error.
sklearn/tests/test_public_functions.py
@@ -123,6 +123,7 @@ def _check_function_param_validation(
123
"sklearn.metrics.f1_score",
124
"sklearn.metrics.hamming_loss",
125
"sklearn.metrics.log_loss",
126
+ "sklearn.metrics.max_error",
127
"sklearn.metrics.mean_absolute_error",
128
"sklearn.metrics.mean_squared_error",
129
"sklearn.metrics.mean_tweedie_deviance",
0 commit comments