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
80 additions
and
91 deletions
+80
-91
include/LightGBM/utils/threading.h
include/LightGBM/utils/threading.h
+4
-4
src/application/application.cpp
src/application/application.cpp
+8
-9
src/application/predictor.hpp
src/application/predictor.hpp
+6
-6
src/boosting/dart.hpp
src/boosting/dart.hpp
+2
-2
src/boosting/gbdt.cpp
src/boosting/gbdt.cpp
+4
-5
src/boosting/gbdt.h
src/boosting/gbdt.h
+6
-6
src/boosting/gbdt_model_text.cpp
src/boosting/gbdt_model_text.cpp
+4
-5
src/boosting/gbdt_prediction.cpp
src/boosting/gbdt_prediction.cpp
+2
-2
src/boosting/goss.hpp
src/boosting/goss.hpp
+4
-4
src/boosting/prediction_early_stop.cpp
src/boosting/prediction_early_stop.cpp
+3
-4
src/boosting/rf.hpp
src/boosting/rf.hpp
+3
-3
src/boosting/score_updater.hpp
src/boosting/score_updater.hpp
+3
-3
src/c_api.cpp
src/c_api.cpp
+8
-9
src/io/bin.cpp
src/io/bin.cpp
+5
-6
src/io/config.cpp
src/io/config.cpp
+2
-3
src/io/dataset.cpp
src/io/dataset.cpp
+6
-7
src/io/dataset_loader.cpp
src/io/dataset_loader.cpp
+2
-3
src/io/dense_bin.hpp
src/io/dense_bin.hpp
+2
-2
src/io/file_io.cpp
src/io/file_io.cpp
+3
-4
src/io/json11.cpp
src/io/json11.cpp
+3
-4
No files found.
include/LightGBM/utils/threading.h
View file @
ac5f5e56
...
...
@@ -6,14 +6,14 @@
#ifndef LIGHTGBM_UTILS_THREADING_H_
#define LIGHTGBM_UTILS_THREADING_H_
#include <algorithm>
#include <functional>
#include <vector>
#include <LightGBM/meta.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <algorithm>
#include <functional>
#include <vector>
namespace
LightGBM
{
class
Threading
{
...
...
src/application/application.cpp
View file @
ac5f5e56
...
...
@@ -2,15 +2,6 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <string>
#include <chrono>
#include <cstdio>
#include <ctime>
#include <fstream>
#include <sstream>
#include <utility>
#include <LightGBM/application.h>
#include <LightGBM/boosting.h>
...
...
@@ -24,6 +15,14 @@
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/text_reader.h>
#include <string>
#include <chrono>
#include <cstdio>
#include <ctime>
#include <fstream>
#include <sstream>
#include <utility>
#include "predictor.hpp"
namespace
LightGBM
{
...
...
src/application/predictor.hpp
View file @
ac5f5e56
...
...
@@ -5,6 +5,12 @@
#ifndef LIGHTGBM_PREDICTOR_HPP_
#define LIGHTGBM_PREDICTOR_HPP_
#include <LightGBM/boosting.h>
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/text_reader.h>
#include <string>
#include <cstdio>
#include <cstring>
...
...
@@ -15,12 +21,6 @@
#include <utility>
#include <vector>
#include <LightGBM/boosting.h>
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/text_reader.h>
namespace
LightGBM
{
/*!
...
...
src/boosting/dart.hpp
View file @
ac5f5e56
...
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_BOOSTING_DART_H_
#define LIGHTGBM_BOOSTING_DART_H_
#include <LightGBM/boosting.h>
#include <string>
#include <algorithm>
#include <cstdio>
#include <fstream>
#include <vector>
#include <LightGBM/boosting.h>
#include "gbdt.h"
#include "score_updater.hpp"
...
...
src/boosting/gbdt.cpp
View file @
ac5f5e56
...
...
@@ -2,13 +2,8 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include "gbdt.h"
#include <chrono>
#include <ctime>
#include <sstream>
#include <LightGBM/metric.h>
#include <LightGBM/network.h>
#include <LightGBM/objective_function.h>
...
...
@@ -16,6 +11,10 @@
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <chrono>
#include <ctime>
#include <sstream>
namespace
LightGBM
{
GBDT
::
GBDT
()
...
...
src/boosting/gbdt.h
View file @
ac5f5e56
...
...
@@ -5,6 +5,12 @@
#ifndef LIGHTGBM_BOOSTING_GBDT_H_
#define LIGHTGBM_BOOSTING_GBDT_H_
#include <LightGBM/boosting.h>
#include <LightGBM/objective_function.h>
#include <LightGBM/prediction_early_stop.h>
#include <LightGBM/utils/json11.h>
#include <LightGBM/utils/threading.h>
#include <string>
#include <algorithm>
#include <cstdio>
...
...
@@ -16,12 +22,6 @@
#include <utility>
#include <vector>
#include <LightGBM/boosting.h>
#include <LightGBM/objective_function.h>
#include <LightGBM/prediction_early_stop.h>
#include <LightGBM/utils/json11.h>
#include <LightGBM/utils/threading.h>
#include "score_updater.hpp"
namespace
LightGBM
{
...
...
src/boosting/gbdt_model_text.cpp
View file @
ac5f5e56
...
...
@@ -2,17 +2,16 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <string>
#include <sstream>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/metric.h>
#include <LightGBM/objective_function.h>
#include <LightGBM/utils/array_args.h>
#include <LightGBM/utils/common.h>
#include <string>
#include <sstream>
#include <vector>
#include "gbdt.h"
namespace
LightGBM
{
...
...
src/boosting/gbdt_prediction.cpp
View file @
ac5f5e56
...
...
@@ -2,12 +2,12 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include "gbdt.h"
#include <LightGBM/objective_function.h>
#include <LightGBM/prediction_early_stop.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include "gbdt.h"
namespace
LightGBM
{
void
GBDT
::
PredictRaw
(
const
double
*
features
,
double
*
output
,
const
PredictionEarlyStopInstance
*
early_stop
)
const
{
...
...
src/boosting/goss.hpp
View file @
ac5f5e56
...
...
@@ -5,6 +5,10 @@
#ifndef LIGHTGBM_BOOSTING_GOSS_H_
#define LIGHTGBM_BOOSTING_GOSS_H_
#include <LightGBM/boosting.h>
#include <LightGBM/utils/array_args.h>
#include <LightGBM/utils/log.h>
#include <string>
#include <algorithm>
#include <chrono>
...
...
@@ -12,10 +16,6 @@
#include <fstream>
#include <vector>
#include <LightGBM/boosting.h>
#include <LightGBM/utils/array_args.h>
#include <LightGBM/utils/log.h>
#include "gbdt.h"
#include "score_updater.hpp"
...
...
src/boosting/prediction_early_stop.cpp
View file @
ac5f5e56
...
...
@@ -2,16 +2,15 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <LightGBM/prediction_early_stop.h>
#include <LightGBM/utils/log.h>
#include <limits>
#include <algorithm>
#include <cmath>
#include <vector>
#include <LightGBM/prediction_early_stop.h>
#include <LightGBM/utils/log.h>
namespace
LightGBM
{
PredictionEarlyStopInstance
CreateNone
(
const
PredictionEarlyStopConfig
&
)
{
...
...
src/boosting/rf.hpp
View file @
ac5f5e56
...
...
@@ -5,6 +5,9 @@
#ifndef LIGHTGBM_BOOSTING_RF_H_
#define LIGHTGBM_BOOSTING_RF_H_
#include <LightGBM/boosting.h>
#include <LightGBM/metric.h>
#include <string>
#include <cstdio>
#include <fstream>
...
...
@@ -12,9 +15,6 @@
#include <utility>
#include <vector>
#include <LightGBM/boosting.h>
#include <LightGBM/metric.h>
#include "gbdt.h"
#include "score_updater.hpp"
...
...
src/boosting/score_updater.hpp
View file @
ac5f5e56
...
...
@@ -5,15 +5,15 @@
#ifndef LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_
#define LIGHTGBM_BOOSTING_SCORE_UPDATER_HPP_
#include <cstring>
#include <vector>
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
#include <LightGBM/tree.h>
#include <LightGBM/tree_learner.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <cstring>
#include <vector>
namespace
LightGBM
{
/*!
* \brief Used to store and update score for data
...
...
src/c_api.cpp
View file @
ac5f5e56
...
...
@@ -2,15 +2,6 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <string>
#include <cstdio>
#include <functional>
#include <memory>
#include <mutex>
#include <stdexcept>
#include <vector>
#include <LightGBM/c_api.h>
#include <LightGBM/boosting.h>
...
...
@@ -27,6 +18,14 @@
#include <LightGBM/utils/random.h>
#include <LightGBM/utils/threading.h>
#include <string>
#include <cstdio>
#include <functional>
#include <memory>
#include <mutex>
#include <stdexcept>
#include <vector>
#include "application/predictor.hpp"
namespace
LightGBM
{
...
...
src/io/bin.cpp
View file @
ac5f5e56
...
...
@@ -2,18 +2,17 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <LightGBM/bin.h>
#include <LightGBM/utils/array_args.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/file_io.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstring>
#include "dense_bin.hpp"
#include "multi_val_dense_bin.hpp"
#include "multi_val_sparse_bin.hpp"
...
...
src/io/config.cpp
View file @
ac5f5e56
...
...
@@ -2,15 +2,14 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <limits>
#include <LightGBM/config.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/random.h>
#include <limits>
namespace
LightGBM
{
void
Config
::
KV2Map
(
std
::
unordered_map
<
std
::
string
,
std
::
string
>*
params
,
const
char
*
kv
)
{
...
...
src/io/dataset.cpp
View file @
ac5f5e56
...
...
@@ -3,13 +3,6 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
*/
#include <chrono>
#include <cstdio>
#include <limits>
#include <sstream>
#include <unordered_map>
#include <LightGBM/dataset.h>
#include <LightGBM/feature_group.h>
...
...
@@ -17,6 +10,12 @@
#include <LightGBM/utils/openmp_wrapper.h>
#include <LightGBM/utils/threading.h>
#include <chrono>
#include <cstdio>
#include <limits>
#include <sstream>
#include <unordered_map>
namespace
LightGBM
{
const
char
*
Dataset
::
binary_file_token
=
...
...
src/io/dataset_loader.cpp
View file @
ac5f5e56
...
...
@@ -2,9 +2,6 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <fstream>
#include <LightGBM/dataset_loader.h>
#include <LightGBM/network.h>
...
...
@@ -13,6 +10,8 @@
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <fstream>
namespace
LightGBM
{
using
json11
::
Json
;
...
...
src/io/dense_bin.hpp
View file @
ac5f5e56
...
...
@@ -6,12 +6,12 @@
#ifndef LIGHTGBM_IO_DENSE_BIN_HPP_
#define LIGHTGBM_IO_DENSE_BIN_HPP_
#include <LightGBM/bin.h>
#include <cstdint>
#include <cstring>
#include <vector>
#include <LightGBM/bin.h>
namespace
LightGBM
{
template
<
typename
VAL_T
,
bool
IS_4BIT
>
...
...
src/io/file_io.cpp
View file @
ac5f5e56
...
...
@@ -3,15 +3,14 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
*/
#include <LightGBM/utils/file_io.h>
#include <LightGBM/utils/log.h>
#include <algorithm>
#include <sstream>
#include <unordered_map>
#include <LightGBM/utils/file_io.h>
#include <LightGBM/utils/log.h>
#ifdef USE_HDFS
#include <hdfs.h>
#endif
...
...
src/io/json11.cpp
View file @
ac5f5e56
...
...
@@ -18,16 +18,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include <LightGBM/utils/json11.h>
#include <LightGBM/utils/log.h>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <limits>
#include <LightGBM/utils/json11.h>
#include <LightGBM/utils/log.h>
namespace
json11
{
static
const
int
max_depth
=
200
;
...
...
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