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
45a7a0ab
Commit
45a7a0ab
authored
Oct 21, 2016
by
Qiwei Ye
Browse files
fixing linux builds
parent
84a7486f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
.gitignore
.gitignore
+1
-0
src/CMakeLists.txt
src/CMakeLists.txt
+2
-1
src/boosting/gbdt.cpp
src/boosting/gbdt.cpp
+1
-1
src/util/log.cpp
src/util/log.cpp
+0
-0
No files found.
.gitignore
View file @
45a7a0ab
...
@@ -267,3 +267,4 @@ _Pvt_Extensions
...
@@ -267,3 +267,4 @@ _Pvt_Extensions
*.out
*.out
*.app
*.app
/windows/LightGBM.VC.db
/windows/LightGBM.VC.db
lightgbm
src/CMakeLists.txt
View file @
45a7a0ab
...
@@ -11,8 +11,9 @@ AUX_SOURCE_DIRECTORY(./metric/ METRIC_SRC)
...
@@ -11,8 +11,9 @@ AUX_SOURCE_DIRECTORY(./metric/ METRIC_SRC)
AUX_SOURCE_DIRECTORY
(
./objective/ OBJECTIVE_SRC
)
AUX_SOURCE_DIRECTORY
(
./objective/ OBJECTIVE_SRC
)
AUX_SOURCE_DIRECTORY
(
./network/ NETWORK_SRC
)
AUX_SOURCE_DIRECTORY
(
./network/ NETWORK_SRC
)
AUX_SOURCE_DIRECTORY
(
./treelearner/ TREELEARNER_SRC
)
AUX_SOURCE_DIRECTORY
(
./treelearner/ TREELEARNER_SRC
)
AUX_SOURCE_DIRECTORY
(
./util/ UTIL_SRC
)
add_executable
(
lightgbm main.cpp
${
APPLICATION_SRC
}
${
BOOSTING_SRC
}
${
IO_SRC
}
${
METRIC_SRC
}
${
OBJECTIVE_SRC
}
${
NETWORK_SRC
}
${
TREELEARNER_SRC
}
)
add_executable
(
lightgbm main.cpp
${
APPLICATION_SRC
}
${
BOOSTING_SRC
}
${
IO_SRC
}
${
METRIC_SRC
}
${
OBJECTIVE_SRC
}
${
NETWORK_SRC
}
${
TREELEARNER_SRC
}
${
UTIL_SRC
}
)
if
(
USE_MPI
)
if
(
USE_MPI
)
TARGET_LINK_LIBRARIES
(
lightgbm
${
MPI_CXX_LIBRARIES
}
)
TARGET_LINK_LIBRARIES
(
lightgbm
${
MPI_CXX_LIBRARIES
}
)
...
...
src/boosting/gbdt.cpp
View file @
45a7a0ab
...
@@ -208,7 +208,7 @@ void GBDT::Train() {
...
@@ -208,7 +208,7 @@ void GBDT::Train() {
std
::
milli
>
(
end_time
-
start_time
)
*
1e-3
,
iter
+
1
);
std
::
milli
>
(
end_time
-
start_time
)
*
1e-3
,
iter
+
1
);
if
(
is_early_stopping
)
{
if
(
is_early_stopping
)
{
// close file with an early-stopping message
// close file with an early-stopping message
Log
::
Info
(
"Early stopping at iteration %d, the best iteration round is %d\
d
"
,
iter
+
1
,
iter
+
1
-
early_stopping_round_
);
Log
::
Info
(
"Early stopping at iteration %d, the best iteration round is %d
\
n
"
,
iter
+
1
,
iter
+
1
-
early_stopping_round_
);
fclose
(
output_model_file
);
fclose
(
output_model_file
);
return
;
return
;
}
}
...
...
include/LightGBM
/util
s
/log.cpp
→
src
/util/log.cpp
View file @
45a7a0ab
File moved
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