Skip to content

Commit

Permalink
Change docs for feval (#5002)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshitadixit authored Feb 16, 2022
1 parent 9fc348a commit d31346f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3191,14 +3191,14 @@ def eval_train(self, feval=None):
----------
feval : callable or None, optional (default=None)
Customized evaluation function.
Should accept two parameters: preds, train_data,
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
The predicted values.
If ``fobj`` is specified, predicted values are returned before any transformation,
e.g. they are raw margin instead of probability of positive class for binary task in this case.
train_data : Dataset
eval_data : Dataset
The training dataset.
eval_name : str
The name of evaluation function (without whitespace).
Expand All @@ -3224,14 +3224,14 @@ def eval_valid(self, feval=None):
----------
feval : callable or None, optional (default=None)
Customized evaluation function.
Should accept two parameters: preds, valid_data,
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
The predicted values.
If ``fobj`` is specified, predicted values are returned before any transformation,
e.g. they are raw margin instead of probability of positive class for binary task in this case.
valid_data : Dataset
eval_data : Dataset
The validation dataset.
eval_name : str
The name of evaluation function (without whitespace).
Expand Down
4 changes: 2 additions & 2 deletions python-package/lightgbm/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ def train(
feval : callable, list of callable, or None, optional (default=None)
Customized evaluation function.
Each evaluation function should accept two parameters: preds, train_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
The predicted values.
If ``fobj`` is specified, predicted values are returned before any transformation,
e.g. they are raw margin instead of probability of positive class for binary task in this case.
train_data : Dataset
eval_data : Dataset
The training dataset.
eval_name : str
The name of evaluation function (without whitespaces).
Expand Down

0 comments on commit d31346f

Please sign in to comment.