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
1d5867b4
Commit
1d5867b4
authored
May 30, 2017
by
cbecker
Committed by
Guolin Ke
May 30, 2017
Browse files
Fix compilation warning and linkage error with MSVC due to struct/class mismatch (#568)
parent
473def45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
include/LightGBM/boosting.h
include/LightGBM/boosting.h
+1
-1
include/LightGBM/prediction_early_stop.h
include/LightGBM/prediction_early_stop.h
+0
-2
No files found.
include/LightGBM/boosting.h
View file @
1d5867b4
...
@@ -13,7 +13,7 @@ namespace LightGBM {
...
@@ -13,7 +13,7 @@ namespace LightGBM {
class
Dataset
;
class
Dataset
;
class
ObjectiveFunction
;
class
ObjectiveFunction
;
class
Metric
;
class
Metric
;
class
PredictionEarlyStopInstance
;
struct
PredictionEarlyStopInstance
;
/*!
/*!
* \brief The interface for Boosting
* \brief The interface for Boosting
...
...
include/LightGBM/prediction_early_stop.h
View file @
1d5867b4
...
@@ -8,7 +8,6 @@
...
@@ -8,7 +8,6 @@
namespace
LightGBM
{
namespace
LightGBM
{
#pragma warning(disable : 4099)
struct
PredictionEarlyStopInstance
{
struct
PredictionEarlyStopInstance
{
/// Callback function type for early stopping.
/// Callback function type for early stopping.
/// Takes current prediction and number of elements in prediction
/// Takes current prediction and number of elements in prediction
...
@@ -19,7 +18,6 @@ struct PredictionEarlyStopInstance {
...
@@ -19,7 +18,6 @@ struct PredictionEarlyStopInstance {
int
round_period
;
// call callback_function every `runPeriod` iterations
int
round_period
;
// call callback_function every `runPeriod` iterations
};
};
#pragma warning(disable : 4099)
struct
PredictionEarlyStopConfig
{
struct
PredictionEarlyStopConfig
{
int
round_period
;
int
round_period
;
double
margin_threshold
;
double
margin_threshold
;
...
...
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