"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "983bd842950d3217aee8bd528f9fb054b2b4c3f4"
Unverified Commit d31346f6 authored by Akshita Dixit's avatar Akshita Dixit Committed by GitHub
Browse files

Change docs for feval (#5002)

parent 9fc348af
...@@ -3191,14 +3191,14 @@ class Booster: ...@@ -3191,14 +3191,14 @@ class Booster:
---------- ----------
feval : callable or None, optional (default=None) feval : callable or None, optional (default=None)
Customized evaluation function. 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. and return (eval_name, eval_result, is_higher_better) or list of such tuples.
preds : numpy 1-D array preds : numpy 1-D array
The predicted values. The predicted values.
If ``fobj`` is specified, predicted values are returned before any transformation, 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. 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. The training dataset.
eval_name : str eval_name : str
The name of evaluation function (without whitespace). The name of evaluation function (without whitespace).
...@@ -3224,14 +3224,14 @@ class Booster: ...@@ -3224,14 +3224,14 @@ class Booster:
---------- ----------
feval : callable or None, optional (default=None) feval : callable or None, optional (default=None)
Customized evaluation function. 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. and return (eval_name, eval_result, is_higher_better) or list of such tuples.
preds : numpy 1-D array preds : numpy 1-D array
The predicted values. The predicted values.
If ``fobj`` is specified, predicted values are returned before any transformation, 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. 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. The validation dataset.
eval_name : str eval_name : str
The name of evaluation function (without whitespace). The name of evaluation function (without whitespace).
......
...@@ -75,14 +75,14 @@ def train( ...@@ -75,14 +75,14 @@ def train(
feval : callable, list of callable, or None, optional (default=None) feval : callable, list of callable, or None, optional (default=None)
Customized evaluation function. 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. and return (eval_name, eval_result, is_higher_better) or list of such tuples.
preds : numpy 1-D array preds : numpy 1-D array
The predicted values. The predicted values.
If ``fobj`` is specified, predicted values are returned before any transformation, 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. 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. The training dataset.
eval_name : str eval_name : str
The name of evaluation function (without whitespaces). The name of evaluation function (without whitespaces).
......
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