#ifndef LIGHTGBM_META_H_ #define LIGHTGBM_META_H_ #include #include #include #include #include namespace LightGBM { /*! \brief Type of data size, it is better to use signed type*/ typedef int32_t data_size_t; /*! \brief Type of score, and gradients */ typedef float score_t; const score_t kMinScore = -std::numeric_limits::infinity(); const score_t kEpsilon = 1e-15f; const double kZeroThreshold = 1e-35f; using ReduceFunction = std::function; using PredictFunction = std::function>&, double* output)>; using AllreduceFunction = std::function; using ReduceScatterFunction = std::function; using AllgatherFunction = std::function; #define NO_SPECIFIC (-1) #if (_MSC_VER <= 1800) #define __func__ __FUNCTION__ #endif } // namespace LightGBM #endif // LightGBM_META_H_