@@ -156,9 +156,9 @@ def custom_metric(
156156 "pred_time": pred_time,
157157 }
158158 ```
159- **Note:** When passing a custom metric function, pass the function itself
160- (e.g., `metric=custom_metric`), not the result of calling it
161- (e.g., `metric=custom_metric(...)`). FLAML will call your function
159+ **Note:** When passing a custom metric function, pass the function itself
160+ (e.g., `metric=custom_metric`), not the result of calling it
161+ (e.g., `metric=custom_metric(...)`). FLAML will call your function
162162 internally during the training process.
163163 task: A string of the task type, e.g.,
164164 'classification', 'regression', 'ts_forecast', 'rank',
@@ -471,11 +471,11 @@ def __setstate__(self, state):
471471 @staticmethod
472472 def _validate_metric_parameter (metric , allow_auto = True ):
473473 """Validate that the metric parameter is either a string or a callable function.
474-
474+
475475 Args:
476476 metric: The metric parameter to validate.
477477 allow_auto: Whether to allow "auto" as a valid string value.
478-
478+
479479 Raises:
480480 ValueError: If metric is not a string or callable function.
481481 """
@@ -1838,9 +1838,9 @@ def custom_metric(
18381838 "pred_time": pred_time,
18391839 }
18401840 ```
1841- **Note:** When passing a custom metric function, pass the function itself
1842- (e.g., `metric=custom_metric`), not the result of calling it
1843- (e.g., `metric=custom_metric(...)`). FLAML will call your function
1841+ **Note:** When passing a custom metric function, pass the function itself
1842+ (e.g., `metric=custom_metric`), not the result of calling it
1843+ (e.g., `metric=custom_metric(...)`). FLAML will call your function
18441844 internally during the training process.
18451845 task: A string of the task type, e.g.,
18461846 'classification', 'regression', 'ts_forecast_regression',
0 commit comments