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 {
class Dataset;
class ObjectiveFunction;
class Metric;
class PredictionEarlyStopInstance;
struct PredictionEarlyStopInstance;
/*!
* \brief The interface for Boosting
......
......@@ -8,7 +8,6 @@
namespace LightGBM {
#pragma warning(disable : 4099)
struct PredictionEarlyStopInstance {
/// Callback function type for early stopping.
/// Takes current prediction and number of elements in prediction
......@@ -19,7 +18,6 @@ struct PredictionEarlyStopInstance {
int round_period; // call callback_function every `runPeriod` iterations
};
#pragma warning(disable : 4099)
struct PredictionEarlyStopConfig {
int round_period;
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