Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
d31346f6
Unverified
Commit
d31346f6
authored
Feb 16, 2022
by
Akshita Dixit
Committed by
GitHub
Feb 16, 2022
Browse files
Change docs for feval (#5002)
parent
9fc348af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+4
-4
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+2
-2
No files found.
python-package/lightgbm/basic.py
View file @
d31346f6
...
...
@@ -3191,14 +3191,14 @@ class Booster:
----------
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).
...
...
@@ -3224,14 +3224,14 @@ class Booster:
----------
feval : callable or None, optional (default=None)
Customized evaluation function.
Should accept two parameters: preds, val
id
_data,
Should accept two parameters: preds,
e
val_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.
val
id
_data : Dataset
e
val_data : Dataset
The validation dataset.
eval_name : str
The name of evaluation function (without whitespace).
...
...
python-package/lightgbm/engine.py
View file @
d31346f6
...
...
@@ -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).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment