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
60710c70
Unverified
Commit
60710c70
authored
Feb 24, 2020
by
Alberto Ferreira
Committed by
GitHub
Feb 24, 2020
Browse files
Fix SingleRowPredictor::IsPredictorEqual comparison (invert) (#2799)
parent
060c681d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/c_api.cpp
src/c_api.cpp
+7
-5
No files found.
src/c_api.cpp
View file @
60710c70
...
@@ -77,13 +77,15 @@ class SingleRowPredictor {
...
@@ -77,13 +77,15 @@ class SingleRowPredictor {
predict_function
=
predictor_
->
GetPredictFunction
();
predict_function
=
predictor_
->
GetPredictFunction
();
num_total_model_
=
boosting
->
NumberOfTotalModel
();
num_total_model_
=
boosting
->
NumberOfTotalModel
();
}
}
~
SingleRowPredictor
()
{}
~
SingleRowPredictor
()
{}
bool
IsPredictorEqual
(
const
Config
&
config
,
int
iter
,
Boosting
*
boosting
)
{
bool
IsPredictorEqual
(
const
Config
&
config
,
int
iter
,
Boosting
*
boosting
)
{
return
early_stop_
!
=
config
.
pred_early_stop
||
return
early_stop_
=
=
config
.
pred_early_stop
&&
early_stop_freq_
!
=
config
.
pred_early_stop_freq
||
early_stop_freq_
=
=
config
.
pred_early_stop_freq
&&
early_stop_margin_
!
=
config
.
pred_early_stop_margin
||
early_stop_margin_
=
=
config
.
pred_early_stop_margin
&&
iter_
!
=
iter
||
iter_
=
=
iter
&&
num_total_model_
!
=
boosting
->
NumberOfTotalModel
();
num_total_model_
=
=
boosting
->
NumberOfTotalModel
();
}
}
private:
private:
...
...
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