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
224b8b98
Unverified
Commit
224b8b98
authored
Feb 24, 2020
by
Nikita Titov
Committed by
GitHub
Feb 24, 2020
Browse files
fixed cpplint issues (#2809)
* fixed cpplint issues * fixed cpplint issues
parent
414c7b44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/boosting/gbdt.cpp
src/boosting/gbdt.cpp
+3
-3
No files found.
src/boosting/gbdt.cpp
View file @
224b8b98
...
@@ -671,7 +671,7 @@ void GBDT::GetPredictAt(int data_idx, double* out_result, int64_t* out_len) {
...
@@ -671,7 +671,7 @@ void GBDT::GetPredictAt(int data_idx, double* out_result, int64_t* out_len) {
double
GBDT
::
GetUpperBoundValue
()
const
{
double
GBDT
::
GetUpperBoundValue
()
const
{
double
max_value
=
0.0
;
double
max_value
=
0.0
;
for
(
const
auto
&
tree
:
models_
)
{
for
(
const
auto
&
tree
:
models_
)
{
max_value
+=
tree
->
GetUpperBoundValue
();
max_value
+=
tree
->
GetUpperBoundValue
();
}
}
return
max_value
;
return
max_value
;
...
@@ -679,7 +679,7 @@ double GBDT::GetUpperBoundValue() const {
...
@@ -679,7 +679,7 @@ double GBDT::GetUpperBoundValue() const {
double
GBDT
::
GetLowerBoundValue
()
const
{
double
GBDT
::
GetLowerBoundValue
()
const
{
double
min_value
=
0.0
;
double
min_value
=
0.0
;
for
(
const
auto
&
tree
:
models_
)
{
for
(
const
auto
&
tree
:
models_
)
{
min_value
+=
tree
->
GetLowerBoundValue
();
min_value
+=
tree
->
GetLowerBoundValue
();
}
}
return
min_value
;
return
min_value
;
...
...
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