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
997a469f
Unverified
Commit
997a469f
authored
Feb 20, 2020
by
Nikita Titov
Committed by
GitHub
Feb 20, 2020
Browse files
fixed metric_freq param description (#2780)
parent
c4a7ab81
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
R-package/tests/testthat/test_learning_to_rank.R
R-package/tests/testthat/test_learning_to_rank.R
+0
-2
docs/Parameters.rst
docs/Parameters.rst
+2
-0
include/LightGBM/config.h
include/LightGBM/config.h
+1
-0
No files found.
R-package/tests/testthat/test_learning_to_rank.R
View file @
997a469f
...
@@ -20,7 +20,6 @@ test_that("learning-to-rank with lgb.train() works as expected", {
...
@@ -20,7 +20,6 @@ test_that("learning-to-rank with lgb.train() works as expected", {
objective
=
"lambdarank"
objective
=
"lambdarank"
,
metric
=
"ndcg"
,
metric
=
"ndcg"
,
ndcg_at
=
ndcg_at
,
ndcg_at
=
ndcg_at
,
metric_freq
=
1L
,
max_position
=
3L
,
max_position
=
3L
,
learning_rate
=
0.001
,
learning_rate
=
0.001
)
)
...
@@ -68,7 +67,6 @@ test_that("learning-to-rank with lgb.cv() works as expected", {
...
@@ -68,7 +67,6 @@ test_that("learning-to-rank with lgb.cv() works as expected", {
objective
=
"lambdarank"
objective
=
"lambdarank"
,
metric
=
"ndcg"
,
metric
=
"ndcg"
,
ndcg_at
=
ndcg_at
,
ndcg_at
=
ndcg_at
,
metric_freq
=
1L
,
max_position
=
3L
,
max_position
=
3L
,
label_gain
=
"0,1,3"
,
label_gain
=
"0,1,3"
)
)
...
...
docs/Parameters.rst
View file @
997a469f
...
@@ -951,6 +951,8 @@ Metric Parameters
...
@@ -951,6 +951,8 @@ Metric Parameters
- frequency for metric output
- frequency for metric output
- **Note**: can be used only in CLI version
- ``is_provide_training_metric`` :raw-html:`<a id="is_provide_training_metric" title="Permalink to this parameter" href="#is_provide_training_metric">🔗︎</a>`, default = ``false``, type = bool, aliases: ``training_metric``, ``is_training_metric``, ``train_metric``
- ``is_provide_training_metric`` :raw-html:`<a id="is_provide_training_metric" title="Permalink to this parameter" href="#is_provide_training_metric">🔗︎</a>`, default = ``false``, type = bool, aliases: ``training_metric``, ``is_training_metric``, ``train_metric``
- set this to ``true`` to output metric result over training dataset
- set this to ``true`` to output metric result over training dataset
...
...
include/LightGBM/config.h
View file @
997a469f
...
@@ -808,6 +808,7 @@ struct Config {
...
@@ -808,6 +808,7 @@ struct Config {
// check = >0
// check = >0
// alias = output_freq
// alias = output_freq
// desc = frequency for metric output
// desc = frequency for metric output
// desc = **Note**: can be used only in CLI version
int
metric_freq
=
1
;
int
metric_freq
=
1
;
// alias = training_metric, is_training_metric, train_metric
// alias = training_metric, is_training_metric, train_metric
...
...
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