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
45960910
Commit
45960910
authored
Mar 05, 2017
by
tks
Committed by
Guolin Ke
Mar 05, 2017
Browse files
fix comments (#334)
parent
bc9d57b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/LightGBM/config.h
include/LightGBM/config.h
+3
-3
src/io/config.cpp
src/io/config.cpp
+1
-1
No files found.
include/LightGBM/config.h
View file @
45960910
...
@@ -180,12 +180,12 @@ public:
...
@@ -180,12 +180,12 @@ public:
int
num_leaves
=
127
;
int
num_leaves
=
127
;
int
feature_fraction_seed
=
2
;
int
feature_fraction_seed
=
2
;
double
feature_fraction
=
1.0
f
;
double
feature_fraction
=
1.0
f
;
// max cache size(unit:MB) for historical histogram. < 0 means no
t
limit
// max cache size(unit:MB) for historical histogram. < 0 means no limit
double
histogram_pool_size
=
-
1.0
f
;
double
histogram_pool_size
=
-
1.0
f
;
// max depth of tree model.
// max depth of tree model.
// Still grow tree by leaf-wise, but limit the max depth to avoid over-fitting
// Still grow tree by leaf-wise, but limit the max depth to avoid over-fitting
// And the max leaves will be min(num_leaves, pow(2, max_depth
- 1
))
// And the max leaves will be min(num_leaves, pow(2, max_depth))
// max_depth < 0 means no
t
limit
// max_depth < 0 means no limit
int
max_depth
=
-
1
;
int
max_depth
=
-
1
;
int
top_k
=
20
;
int
top_k
=
20
;
LIGHTGBM_EXPORT
void
Set
(
const
std
::
unordered_map
<
std
::
string
,
std
::
string
>&
params
)
override
;
LIGHTGBM_EXPORT
void
Set
(
const
std
::
unordered_map
<
std
::
string
,
std
::
string
>&
params
)
override
;
...
...
src/io/config.cpp
View file @
45960910
...
@@ -181,7 +181,7 @@ void OverallConfig::CheckParamConflict() {
...
@@ -181,7 +181,7 @@ void OverallConfig::CheckParamConflict() {
&&
boosting_config
.
tree_learner_type
==
std
::
string
(
"data"
))
{
&&
boosting_config
.
tree_learner_type
==
std
::
string
(
"data"
))
{
Log
::
Warning
(
"Histogram LRU queue was enabled (histogram_pool_size=%f). Will disable this to reduce communication costs"
Log
::
Warning
(
"Histogram LRU queue was enabled (histogram_pool_size=%f). Will disable this to reduce communication costs"
,
boosting_config
.
tree_config
.
histogram_pool_size
);
,
boosting_config
.
tree_config
.
histogram_pool_size
);
// Change pool size to -1 (no
t
limit) when using data parallel to reduce communication costs
// Change pool size to -1 (no limit) when using data parallel to reduce communication costs
boosting_config
.
tree_config
.
histogram_pool_size
=
-
1
;
boosting_config
.
tree_config
.
histogram_pool_size
=
-
1
;
}
}
...
...
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