Unverified Commit 3032b646 authored by Miguel Trejo Marrufo's avatar Miguel Trejo Marrufo Committed by GitHub
Browse files

[python-package][docs] Booster eval methods accept list of callables (#5054)

* docs: booster eval methods accept list of callables

* docs: remove extra space
parent 0ef8fe0d
......@@ -3143,9 +3143,9 @@ class Booster:
Data for the evaluating.
name : str
Name of the data.
feval : callable or None, optional (default=None)
feval : callable, list of callable, or None, optional (default=None)
Customized evaluation function.
Should accept two parameters: preds, eval_data,
Each evaluation function should accept two parameters: preds, eval_data,
and return (eval_name, eval_result, is_higher_better) or list of such tuples.
preds : numpy 1-D array or numpy 2-D array (for multi-class task)
......@@ -3189,9 +3189,9 @@ class Booster:
Parameters
----------
feval : callable or None, optional (default=None)
feval : callable, list of callable, or None, optional (default=None)
Customized evaluation function.
Should accept two parameters: preds, eval_data,
Each evaluation function should accept two parameters: preds, eval_data,
and return (eval_name, eval_result, is_higher_better) or list of such tuples.
preds : numpy 1-D array or numpy 2-D array (for multi-class task)
......@@ -3220,9 +3220,9 @@ class Booster:
Parameters
----------
feval : callable or None, optional (default=None)
feval : callable, list of callable, or None, optional (default=None)
Customized evaluation function.
Should accept two parameters: preds, eval_data,
Each evaluation function should accept two parameters: preds, eval_data,
and return (eval_name, eval_result, is_higher_better) or list of such tuples.
preds : numpy 1-D array or numpy 2-D array (for multi-class task)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment