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
05484f1d
Unverified
Commit
05484f1d
authored
Aug 07, 2018
by
Nikita Titov
Committed by
GitHub
Aug 07, 2018
Browse files
[docs] fix feval description (#1571)
parent
c04c0917
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
python-package/lightgbm/engine.py
python-package/lightgbm/engine.py
+6
-4
No files found.
python-package/lightgbm/engine.py
View file @
05484f1d
...
@@ -38,13 +38,14 @@ def train(params, train_set, num_boost_round=100,
...
@@ -38,13 +38,14 @@ def train(params, train_set, num_boost_round=100,
Names of ``valid_sets``.
Names of ``valid_sets``.
fobj : callable or None, optional (default=None)
fobj : callable or None, optional (default=None)
Customized objective function.
Customized objective function.
feval : callable
, string
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, train_data.
For multi-class task, the preds is group by class_id first, then group by row_id.
For multi-class task, the preds is group by class_id first, then group by row_id.
If you want to get i-th row preds in j-th class, the access way is preds[j * num_data + i].
If you want to get i-th row preds in j-th class, the access way is preds[j * num_data + i].
Note: should return (eval_name, eval_result, is_higher_better) or list of such tuples.
Note: should return (eval_name, eval_result, is_higher_better) or list of such tuples.
To ignore the default metric in params, set it to the string ``"None"``
To ignore the default metric corresponding to the used objective,
set the ``metric`` parameter to the string ``"None"`` in ``params``.
init_model : string, Booster or None, optional (default=None)
init_model : string, Booster or None, optional (default=None)
Filename of LightGBM model or Booster instance used for continue training.
Filename of LightGBM model or Booster instance used for continue training.
feature_name : list of strings or 'auto', optional (default="auto")
feature_name : list of strings or 'auto', optional (default="auto")
...
@@ -346,13 +347,14 @@ def cv(params, train_set, num_boost_round=100,
...
@@ -346,13 +347,14 @@ def cv(params, train_set, num_boost_round=100,
If not None, the metric in ``params`` will be overridden.
If not None, the metric in ``params`` will be overridden.
fobj : callable or None, optional (default=None)
fobj : callable or None, optional (default=None)
Custom objective function.
Custom objective function.
feval : callable
, string
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, train_data.
For multi-class task, the preds is group by class_id first, then group by row_id.
For multi-class task, the preds is group by class_id first, then group by row_id.
If you want to get i-th row preds in j-th class, the access way is preds[j * num_data + i].
If you want to get i-th row preds in j-th class, the access way is preds[j * num_data + i].
Note: should return (eval_name, eval_result, is_higher_better) or list of such tuples.
Note: should return (eval_name, eval_result, is_higher_better) or list of such tuples.
To ignore the default metric in params, set it to the string ``"None"``
To ignore the default metric corresponding to the used objective,
set ``metrics`` to the string ``"None"``.
init_model : string, Booster or None, optional (default=None)
init_model : string, Booster or None, optional (default=None)
Filename of LightGBM model or Booster instance used for continue training.
Filename of LightGBM model or Booster instance used for continue training.
feature_name : list of strings or 'auto', optional (default="auto")
feature_name : list of strings or 'auto', optional (default="auto")
...
...
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