Commit 1d5867b4 authored by cbecker's avatar cbecker Committed by Guolin Ke
Browse files

Fix compilation warning and linkage error with MSVC due to struct/class mismatch (#568)

parent 473def45
...@@ -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
......
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment