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
55656f27
Commit
55656f27
authored
Aug 01, 2019
by
奇安信CodeSafe
Committed by
Guolin Ke
Aug 01, 2019
Browse files
delete the variable which is never used (#2294)
parent
c17a5f5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/application/application.cpp
src/application/application.cpp
+1
-1
No files found.
src/application/application.cpp
View file @
55656f27
...
@@ -85,7 +85,7 @@ void Application::LoadData() {
...
@@ -85,7 +85,7 @@ void Application::LoadData() {
std
::
unique_ptr
<
Predictor
>
predictor
;
std
::
unique_ptr
<
Predictor
>
predictor
;
// prediction is needed if using input initial model(continued train)
// prediction is needed if using input initial model(continued train)
PredictFunction
predict_fun
=
nullptr
;
PredictFunction
predict_fun
=
nullptr
;
PredictionEarlyStopInstance
pred_early_stop
=
CreatePredictionEarlyStopInstance
(
"none"
,
LightGBM
::
PredictionEarlyStopConfig
());
// need to continue training
// need to continue training
if
(
boosting_
->
NumberOfTotalModel
()
>
0
&&
config_
.
task
!=
TaskType
::
KRefitTree
)
{
if
(
boosting_
->
NumberOfTotalModel
()
>
0
&&
config_
.
task
!=
TaskType
::
KRefitTree
)
{
predictor
.
reset
(
new
Predictor
(
boosting_
.
get
(),
-
1
,
true
,
false
,
false
,
false
,
-
1
,
-
1
));
predictor
.
reset
(
new
Predictor
(
boosting_
.
get
(),
-
1
,
true
,
false
,
false
,
false
,
-
1
,
-
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