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
ac5f5e56
Unverified
Commit
ac5f5e56
authored
Jun 05, 2020
by
Nikita Titov
Committed by
GitHub
Jun 05, 2020
Browse files
Revert "re-order includes (fixes #3132) (#3133)" (#3153)
This reverts commit
656d2676
.
parent
675b552d
Changes
77
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
72 additions
and
72 deletions
+72
-72
R-package/src/lightgbm_R.cpp
R-package/src/lightgbm_R.cpp
+7
-7
include/LightGBM/application.h
include/LightGBM/application.h
+3
-3
include/LightGBM/bin.h
include/LightGBM/bin.h
+4
-4
include/LightGBM/boosting.h
include/LightGBM/boosting.h
+3
-3
include/LightGBM/c_api.h
include/LightGBM/c_api.h
+2
-2
include/LightGBM/config.h
include/LightGBM/config.h
+5
-5
include/LightGBM/dataset.h
include/LightGBM/dataset.h
+7
-7
include/LightGBM/dataset_loader.h
include/LightGBM/dataset_loader.h
+2
-2
include/LightGBM/feature_group.h
include/LightGBM/feature_group.h
+4
-4
include/LightGBM/metric.h
include/LightGBM/metric.h
+3
-3
include/LightGBM/network.h
include/LightGBM/network.h
+4
-4
include/LightGBM/objective_function.h
include/LightGBM/objective_function.h
+3
-3
include/LightGBM/prediction_early_stop.h
include/LightGBM/prediction_early_stop.h
+2
-2
include/LightGBM/tree.h
include/LightGBM/tree.h
+3
-3
include/LightGBM/tree_learner.h
include/LightGBM/tree_learner.h
+3
-3
include/LightGBM/utils/array_args.h
include/LightGBM/utils/array_args.h
+3
-3
include/LightGBM/utils/common.h
include/LightGBM/utils/common.h
+3
-3
include/LightGBM/utils/openmp_wrapper.h
include/LightGBM/utils/openmp_wrapper.h
+4
-4
include/LightGBM/utils/pipeline_reader.h
include/LightGBM/utils/pipeline_reader.h
+3
-3
include/LightGBM/utils/text_reader.h
include/LightGBM/utils/text_reader.h
+4
-4
No files found.
R-package/src/lightgbm_R.cpp
View file @
ac5f5e56
...
@@ -5,13 +5,6 @@
...
@@ -5,13 +5,6 @@
#include "lightgbm_R.h"
#include "lightgbm_R.h"
#include <string>
#include <cstdio>
#include <cstring>
#include <memory>
#include <utility>
#include <vector>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/openmp_wrapper.h>
...
@@ -19,6 +12,13 @@
...
@@ -19,6 +12,13 @@
#include <R_ext/Rdynload.h>
#include <R_ext/Rdynload.h>
#include <string>
#include <cstdio>
#include <cstring>
#include <memory>
#include <utility>
#include <vector>
#define COL_MAJOR (0)
#define COL_MAJOR (0)
#define R_API_BEGIN() \
#define R_API_BEGIN() \
...
...
include/LightGBM/application.h
View file @
ac5f5e56
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
#ifndef LIGHTGBM_APPLICATION_H_
#ifndef LIGHTGBM_APPLICATION_H_
#define LIGHTGBM_APPLICATION_H_
#define LIGHTGBM_APPLICATION_H_
#include <memory>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
#include <memory>
#include <vector>
namespace
LightGBM
{
namespace
LightGBM
{
class
DatasetLoader
;
class
DatasetLoader
;
...
...
include/LightGBM/bin.h
View file @
ac5f5e56
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
#ifndef LIGHTGBM_BIN_H_
#ifndef LIGHTGBM_BIN_H_
#define LIGHTGBM_BIN_H_
#define LIGHTGBM_BIN_H_
#include <LightGBM/meta.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/file_io.h>
#include <limits>
#include <limits>
#include <string>
#include <string>
#include <functional>
#include <functional>
...
@@ -12,10 +16,6 @@
...
@@ -12,10 +16,6 @@
#include <unordered_map>
#include <unordered_map>
#include <vector>
#include <vector>
#include <LightGBM/meta.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/file_io.h>
namespace
LightGBM
{
namespace
LightGBM
{
enum
BinType
{
enum
BinType
{
...
...
include/LightGBM/boosting.h
View file @
ac5f5e56
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_BOOSTING_H_
#ifndef LIGHTGBM_BOOSTING_H_
#define LIGHTGBM_BOOSTING_H_
#define LIGHTGBM_BOOSTING_H_
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <string>
#include <string>
#include <map>
#include <map>
#include <unordered_map>
#include <unordered_map>
#include <vector>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*! \brief forward declaration */
/*! \brief forward declaration */
...
...
include/LightGBM/c_api.h
View file @
ac5f5e56
...
@@ -13,12 +13,12 @@
...
@@ -13,12 +13,12 @@
#ifndef LIGHTGBM_C_API_H_
#ifndef LIGHTGBM_C_API_H_
#define LIGHTGBM_C_API_H_
#define LIGHTGBM_C_API_H_
#include <LightGBM/export.h>
#include <cstdint>
#include <cstdint>
#include <cstdio>
#include <cstdio>
#include <cstring>
#include <cstring>
#include <LightGBM/export.h>
typedef
void
*
DatasetHandle
;
/*!< \brief Handle of dataset. */
typedef
void
*
DatasetHandle
;
/*!< \brief Handle of dataset. */
typedef
void
*
BoosterHandle
;
/*!< \brief Handle of booster. */
typedef
void
*
BoosterHandle
;
/*!< \brief Handle of booster. */
...
...
include/LightGBM/config.h
View file @
ac5f5e56
...
@@ -11,6 +11,11 @@
...
@@ -11,6 +11,11 @@
#ifndef LIGHTGBM_CONFIG_H_
#ifndef LIGHTGBM_CONFIG_H_
#define LIGHTGBM_CONFIG_H_
#define LIGHTGBM_CONFIG_H_
#include <LightGBM/export.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <string>
#include <string>
#include <algorithm>
#include <algorithm>
#include <memory>
#include <memory>
...
@@ -18,11 +23,6 @@
...
@@ -18,11 +23,6 @@
#include <unordered_set>
#include <unordered_set>
#include <vector>
#include <vector>
#include <LightGBM/export.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*! \brief Types of tasks */
/*! \brief Types of tasks */
...
...
include/LightGBM/dataset.h
View file @
ac5f5e56
...
@@ -5,6 +5,13 @@
...
@@ -5,6 +5,13 @@
#ifndef LIGHTGBM_DATASET_H_
#ifndef LIGHTGBM_DATASET_H_
#define LIGHTGBM_DATASET_H_
#define LIGHTGBM_DATASET_H_
#include <LightGBM/config.h>
#include <LightGBM/feature_group.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/random.h>
#include <LightGBM/utils/text_reader.h>
#include <string>
#include <string>
#include <functional>
#include <functional>
#include <memory>
#include <memory>
...
@@ -13,13 +20,6 @@
...
@@ -13,13 +20,6 @@
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/feature_group.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/random.h>
#include <LightGBM/utils/text_reader.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*! \brief forward declaration */
/*! \brief forward declaration */
...
...
include/LightGBM/dataset_loader.h
View file @
ac5f5e56
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
#ifndef LIGHTGBM_DATASET_LOADER_H_
#ifndef LIGHTGBM_DATASET_LOADER_H_
#define LIGHTGBM_DATASET_LOADER_H_
#define LIGHTGBM_DATASET_LOADER_H_
#include <LightGBM/dataset.h>
#include <string>
#include <string>
#include <unordered_set>
#include <unordered_set>
#include <vector>
#include <vector>
#include <LightGBM/dataset.h>
namespace
LightGBM
{
namespace
LightGBM
{
class
DatasetLoader
{
class
DatasetLoader
{
...
...
include/LightGBM/feature_group.h
View file @
ac5f5e56
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_FEATURE_GROUP_H_
#ifndef LIGHTGBM_FEATURE_GROUP_H_
#define LIGHTGBM_FEATURE_GROUP_H_
#define LIGHTGBM_FEATURE_GROUP_H_
#include <cstdio>
#include <memory>
#include <vector>
#include <LightGBM/bin.h>
#include <LightGBM/bin.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/random.h>
#include <LightGBM/utils/random.h>
#include <cstdio>
#include <memory>
#include <vector>
namespace
LightGBM
{
namespace
LightGBM
{
class
Dataset
;
class
Dataset
;
...
...
include/LightGBM/metric.h
View file @
ac5f5e56
...
@@ -5,9 +5,6 @@
...
@@ -5,9 +5,6 @@
#ifndef LIGHTGBM_METRIC_H_
#ifndef LIGHTGBM_METRIC_H_
#define LIGHTGBM_METRIC_H_
#define LIGHTGBM_METRIC_H_
#include <string>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -15,6 +12,9 @@
...
@@ -15,6 +12,9 @@
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/common.h>
#include <string>
#include <vector>
namespace
LightGBM
{
namespace
LightGBM
{
/*!
/*!
...
...
include/LightGBM/network.h
View file @
ac5f5e56
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_NETWORK_H_
#ifndef LIGHTGBM_NETWORK_H_
#define LIGHTGBM_NETWORK_H_
#define LIGHTGBM_NETWORK_H_
#include <functional>
#include <memory>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/log.h>
#include <functional>
#include <memory>
#include <vector>
namespace
LightGBM
{
namespace
LightGBM
{
/*! \brief forward declaration */
/*! \brief forward declaration */
...
...
include/LightGBM/objective_function.h
View file @
ac5f5e56
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
#ifndef LIGHTGBM_OBJECTIVE_FUNCTION_H_
#ifndef LIGHTGBM_OBJECTIVE_FUNCTION_H_
#define LIGHTGBM_OBJECTIVE_FUNCTION_H_
#define LIGHTGBM_OBJECTIVE_FUNCTION_H_
#include <string>
#include <functional>
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
#include <string>
#include <functional>
namespace
LightGBM
{
namespace
LightGBM
{
/*!
/*!
* \brief The interface of Objective Function.
* \brief The interface of Objective Function.
...
...
include/LightGBM/prediction_early_stop.h
View file @
ac5f5e56
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
#ifndef LIGHTGBM_PREDICTION_EARLY_STOP_H_
#ifndef LIGHTGBM_PREDICTION_EARLY_STOP_H_
#define LIGHTGBM_PREDICTION_EARLY_STOP_H_
#define LIGHTGBM_PREDICTION_EARLY_STOP_H_
#include <LightGBM/export.h>
#include <string>
#include <string>
#include <functional>
#include <functional>
#include <LightGBM/export.h>
namespace
LightGBM
{
namespace
LightGBM
{
struct
PredictionEarlyStopInstance
{
struct
PredictionEarlyStopInstance
{
...
...
include/LightGBM/tree.h
View file @
ac5f5e56
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
#ifndef LIGHTGBM_TREE_H_
#ifndef LIGHTGBM_TREE_H_
#define LIGHTGBM_TREE_H_
#define LIGHTGBM_TREE_H_
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
#include <string>
#include <string>
#include <map>
#include <map>
#include <memory>
#include <memory>
#include <unordered_map>
#include <unordered_map>
#include <vector>
#include <vector>
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
namespace
LightGBM
{
namespace
LightGBM
{
#define kCategoricalMask (1)
#define kCategoricalMask (1)
...
...
include/LightGBM/tree_learner.h
View file @
ac5f5e56
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
#ifndef LIGHTGBM_TREE_LEARNER_H_
#ifndef LIGHTGBM_TREE_LEARNER_H_
#define LIGHTGBM_TREE_LEARNER_H_
#define LIGHTGBM_TREE_LEARNER_H_
#include <string>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/json11.h>
#include <LightGBM/utils/json11.h>
#include <string>
#include <vector>
namespace
LightGBM
{
namespace
LightGBM
{
using
json11
::
Json
;
using
json11
::
Json
;
...
...
include/LightGBM/utils/array_args.h
View file @
ac5f5e56
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
#ifndef LIGHTGBM_UTILS_ARRAY_AGRS_H_
#ifndef LIGHTGBM_UTILS_ARRAY_AGRS_H_
#define LIGHTGBM_UTILS_ARRAY_AGRS_H_
#define LIGHTGBM_UTILS_ARRAY_AGRS_H_
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/threading.h>
#include <algorithm>
#include <algorithm>
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/threading.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*!
/*!
...
...
include/LightGBM/utils/common.h
View file @
ac5f5e56
...
@@ -5,6 +5,9 @@
...
@@ -5,6 +5,9 @@
#ifndef LIGHTGBM_UTILS_COMMON_FUN_H_
#ifndef LIGHTGBM_UTILS_COMMON_FUN_H_
#define LIGHTGBM_UTILS_COMMON_FUN_H_
#define LIGHTGBM_UTILS_COMMON_FUN_H_
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <limits>
#include <limits>
#include <string>
#include <string>
#include <algorithm>
#include <algorithm>
...
@@ -23,9 +26,6 @@
...
@@ -23,9 +26,6 @@
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/openmp_wrapper.h>
#if defined(_MSC_VER)
#if defined(_MSC_VER)
#include <malloc.h>
#include <malloc.h>
#elif MM_MALLOC
#elif MM_MALLOC
...
...
include/LightGBM/utils/openmp_wrapper.h
View file @
ac5f5e56
...
@@ -6,16 +6,16 @@
...
@@ -6,16 +6,16 @@
#define LIGHTGBM_OPENMP_WRAPPER_H_
#define LIGHTGBM_OPENMP_WRAPPER_H_
#ifdef _OPENMP
#ifdef _OPENMP
#include <LightGBM/utils/log.h>
#include <omp.h>
#include <exception>
#include <exception>
#include <memory>
#include <memory>
#include <mutex>
#include <mutex>
#include <stdexcept>
#include <stdexcept>
#include <vector>
#include <vector>
#include <omp.h>
#include <LightGBM/utils/log.h>
inline
int
OMP_NUM_THREADS
()
{
inline
int
OMP_NUM_THREADS
()
{
int
ret
=
1
;
int
ret
=
1
;
#pragma omp parallel
#pragma omp parallel
...
...
include/LightGBM/utils/pipeline_reader.h
View file @
ac5f5e56
...
@@ -5,6 +5,9 @@
...
@@ -5,6 +5,9 @@
#ifndef LIGHTGBM_UTILS_PIPELINE_READER_H_
#ifndef LIGHTGBM_UTILS_PIPELINE_READER_H_
#define LIGHTGBM_UTILS_PIPELINE_READER_H_
#define LIGHTGBM_UTILS_PIPELINE_READER_H_
#include <LightGBM/utils/file_io.h>
#include <LightGBM/utils/log.h>
#include <algorithm>
#include <algorithm>
#include <cstdio>
#include <cstdio>
#include <functional>
#include <functional>
...
@@ -13,9 +16,6 @@
...
@@ -13,9 +16,6 @@
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include <LightGBM/utils/file_io.h>
#include <LightGBM/utils/log.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*!
/*!
...
...
include/LightGBM/utils/text_reader.h
View file @
ac5f5e56
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
#ifndef LIGHTGBM_UTILS_TEXT_READER_H_
#ifndef LIGHTGBM_UTILS_TEXT_READER_H_
#define LIGHTGBM_UTILS_TEXT_READER_H_
#define LIGHTGBM_UTILS_TEXT_READER_H_
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/pipeline_reader.h>
#include <LightGBM/utils/random.h>
#include <string>
#include <string>
#include <cstdio>
#include <cstdio>
#include <functional>
#include <functional>
#include <sstream>
#include <sstream>
#include <vector>
#include <vector>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/pipeline_reader.h>
#include <LightGBM/utils/random.h>
namespace
LightGBM
{
namespace
LightGBM
{
const
size_t
kGbs
=
size_t
(
1024
)
*
1024
*
1024
;
const
size_t
kGbs
=
size_t
(
1024
)
*
1024
*
1024
;
...
...
Prev
1
2
3
4
Next
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