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
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
65 additions
and
72 deletions
+65
-72
src/io/metadata.cpp
src/io/metadata.cpp
+2
-3
src/io/multi_val_dense_bin.hpp
src/io/multi_val_dense_bin.hpp
+3
-3
src/io/multi_val_sparse_bin.hpp
src/io/multi_val_sparse_bin.hpp
+3
-3
src/io/parser.cpp
src/io/parser.cpp
+1
-2
src/io/parser.hpp
src/io/parser.hpp
+4
-4
src/io/sparse_bin.hpp
src/io/sparse_bin.hpp
+4
-4
src/io/tree.cpp
src/io/tree.cpp
+4
-5
src/main.cpp
src/main.cpp
+1
-2
src/metric/binary_metric.hpp
src/metric/binary_metric.hpp
+4
-4
src/metric/dcg_calculator.cpp
src/metric/dcg_calculator.cpp
+2
-3
src/metric/map_metric.hpp
src/metric/map_metric.hpp
+5
-5
src/metric/multiclass_metric.hpp
src/metric/multiclass_metric.hpp
+3
-3
src/metric/rank_metric.hpp
src/metric/rank_metric.hpp
+4
-4
src/metric/regression_metric.hpp
src/metric/regression_metric.hpp
+3
-3
src/metric/xentropy_metric.hpp
src/metric/xentropy_metric.hpp
+5
-5
src/network/linker_topo.cpp
src/network/linker_topo.cpp
+3
-4
src/network/linkers.h
src/network/linkers.h
+5
-5
src/network/linkers_socket.cpp
src/network/linkers_socket.cpp
+4
-4
src/network/network.cpp
src/network/network.cpp
+3
-4
src/network/socket_wrapper.hpp
src/network/socket_wrapper.hpp
+2
-2
No files found.
src/io/metadata.cpp
View file @
ac5f5e56
...
@@ -2,13 +2,12 @@
...
@@ -2,13 +2,12 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#include <LightGBM/dataset.h>
#include <LightGBM/utils/common.h>
#include <string>
#include <string>
#include <vector>
#include <vector>
#include <LightGBM/dataset.h>
#include <LightGBM/utils/common.h>
namespace
LightGBM
{
namespace
LightGBM
{
Metadata
::
Metadata
()
{
Metadata
::
Metadata
()
{
...
...
src/io/multi_val_dense_bin.hpp
View file @
ac5f5e56
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_
#ifndef LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_
#define LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_
#define LIGHTGBM_IO_MULTI_VAL_DENSE_BIN_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <algorithm>
#include <algorithm>
#include <cstdint>
#include <cstdint>
#include <cstring>
#include <cstring>
#include <vector>
#include <vector>
#include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h>
namespace
LightGBM
{
namespace
LightGBM
{
template
<
typename
VAL_T
>
template
<
typename
VAL_T
>
...
...
src/io/multi_val_sparse_bin.hpp
View file @
ac5f5e56
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_
#ifndef LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_
#define LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_
#define LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <algorithm>
#include <algorithm>
#include <cstdint>
#include <cstdint>
#include <cstring>
#include <cstring>
#include <vector>
#include <vector>
#include <LightGBM/bin.h>
#include <LightGBM/utils/openmp_wrapper.h>
namespace
LightGBM
{
namespace
LightGBM
{
template
<
typename
INDEX_T
,
typename
VAL_T
>
template
<
typename
INDEX_T
,
typename
VAL_T
>
...
...
src/io/parser.cpp
View file @
ac5f5e56
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#include "parser.hpp"
#include <string>
#include <string>
#include <algorithm>
#include <algorithm>
...
@@ -10,8 +11,6 @@
...
@@ -10,8 +11,6 @@
#include <iostream>
#include <iostream>
#include <memory>
#include <memory>
#include "parser.hpp"
namespace
LightGBM
{
namespace
LightGBM
{
void
GetStatistic
(
const
char
*
str
,
int
*
comma_cnt
,
int
*
tab_cnt
,
int
*
colon_cnt
)
{
void
GetStatistic
(
const
char
*
str
,
int
*
comma_cnt
,
int
*
tab_cnt
,
int
*
colon_cnt
)
{
...
...
src/io/parser.hpp
View file @
ac5f5e56
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_IO_PARSER_HPP_
#ifndef LIGHTGBM_IO_PARSER_HPP_
#define LIGHTGBM_IO_PARSER_HPP_
#define LIGHTGBM_IO_PARSER_HPP_
#include <unordered_map>
#include <utility>
#include <vector>
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/log.h>
#include <unordered_map>
#include <utility>
#include <vector>
namespace
LightGBM
{
namespace
LightGBM
{
class
CSVParser
:
public
Parser
{
class
CSVParser
:
public
Parser
{
...
...
src/io/sparse_bin.hpp
View file @
ac5f5e56
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
#ifndef LIGHTGBM_IO_SPARSE_BIN_HPP_
#ifndef LIGHTGBM_IO_SPARSE_BIN_HPP_
#define LIGHTGBM_IO_SPARSE_BIN_HPP_
#define LIGHTGBM_IO_SPARSE_BIN_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/openmp_wrapper.h>
#include <algorithm>
#include <algorithm>
#include <cstdint>
#include <cstdint>
#include <cstring>
#include <cstring>
...
@@ -13,10 +17,6 @@
...
@@ -13,10 +17,6 @@
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include <LightGBM/bin.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/openmp_wrapper.h>
namespace
LightGBM
{
namespace
LightGBM
{
template
<
typename
VAL_T
>
template
<
typename
VAL_T
>
...
...
src/io/tree.cpp
View file @
ac5f5e56
...
@@ -2,17 +2,16 @@
...
@@ -2,17 +2,16 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#include <functional>
#include <iomanip>
#include <sstream>
#include <LightGBM/tree.h>
#include <LightGBM/tree.h>
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/threading.h>
#include <LightGBM/utils/threading.h>
#include <functional>
#include <iomanip>
#include <sstream>
namespace
LightGBM
{
namespace
LightGBM
{
Tree
::
Tree
(
int
max_leaves
)
Tree
::
Tree
(
int
max_leaves
)
...
...
src/main.cpp
View file @
ac5f5e56
...
@@ -2,11 +2,10 @@
...
@@ -2,11 +2,10 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#include <LightGBM/application.h>
#include <iostream>
#include <iostream>
#include <LightGBM/application.h>
#include "network/linkers.h"
#include "network/linkers.h"
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
...
...
src/metric/binary_metric.hpp
View file @
ac5f5e56
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
#ifndef LIGHTGBM_METRIC_BINARY_METRIC_HPP_
#ifndef LIGHTGBM_METRIC_BINARY_METRIC_HPP_
#define LIGHTGBM_METRIC_BINARY_METRIC_HPP_
#define LIGHTGBM_METRIC_BINARY_METRIC_HPP_
#include <LightGBM/metric.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <string>
#include <string>
#include <algorithm>
#include <algorithm>
#include <sstream>
#include <sstream>
#include <vector>
#include <vector>
#include <LightGBM/metric.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*!
/*!
...
...
src/metric/dcg_calculator.cpp
View file @
ac5f5e56
...
@@ -2,14 +2,13 @@
...
@@ -2,14 +2,13 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#include <LightGBM/metric.h>
#include <LightGBM/utils/log.h>
#include <algorithm>
#include <algorithm>
#include <cmath>
#include <cmath>
#include <vector>
#include <vector>
#include <LightGBM/metric.h>
#include <LightGBM/utils/log.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*! \brief Declaration for some static members */
/*! \brief Declaration for some static members */
...
...
src/metric/map_metric.hpp
View file @
ac5f5e56
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
#ifndef LIGHTGBM_METRIC_MAP_METRIC_HPP_
#ifndef LIGHTGBM_METRIC_MAP_METRIC_HPP_
#define LIGHTGBM_METRIC_MAP_METRIC_HPP_
#define LIGHTGBM_METRIC_MAP_METRIC_HPP_
#include <string>
#include <algorithm>
#include <sstream>
#include <vector>
#include <LightGBM/metric.h>
#include <LightGBM/metric.h>
#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>
#include <string>
#include <algorithm>
#include <sstream>
#include <vector>
namespace
LightGBM
{
namespace
LightGBM
{
class
MapMetric
:
public
Metric
{
class
MapMetric
:
public
Metric
{
...
...
src/metric/multiclass_metric.hpp
View file @
ac5f5e56
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_METRIC_MULTICLASS_METRIC_HPP_
#ifndef LIGHTGBM_METRIC_MULTICLASS_METRIC_HPP_
#define LIGHTGBM_METRIC_MULTICLASS_METRIC_HPP_
#define LIGHTGBM_METRIC_MULTICLASS_METRIC_HPP_
#include <LightGBM/metric.h>
#include <LightGBM/utils/log.h>
#include <string>
#include <string>
#include <cmath>
#include <cmath>
#include <utility>
#include <utility>
#include <vector>
#include <vector>
#include <LightGBM/metric.h>
#include <LightGBM/utils/log.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*!
/*!
* \brief Metric for multiclass task.
* \brief Metric for multiclass task.
...
...
src/metric/rank_metric.hpp
View file @
ac5f5e56
...
@@ -5,15 +5,15 @@
...
@@ -5,15 +5,15 @@
#ifndef LIGHTGBM_METRIC_RANK_METRIC_HPP_
#ifndef LIGHTGBM_METRIC_RANK_METRIC_HPP_
#define LIGHTGBM_METRIC_RANK_METRIC_HPP_
#define LIGHTGBM_METRIC_RANK_METRIC_HPP_
#include <string>
#include <sstream>
#include <vector>
#include <LightGBM/metric.h>
#include <LightGBM/metric.h>
#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>
#include <string>
#include <sstream>
#include <vector>
namespace
LightGBM
{
namespace
LightGBM
{
class
NDCGMetric
:
public
Metric
{
class
NDCGMetric
:
public
Metric
{
...
...
src/metric/regression_metric.hpp
View file @
ac5f5e56
...
@@ -5,14 +5,14 @@
...
@@ -5,14 +5,14 @@
#ifndef LIGHTGBM_METRIC_REGRESSION_METRIC_HPP_
#ifndef LIGHTGBM_METRIC_REGRESSION_METRIC_HPP_
#define LIGHTGBM_METRIC_REGRESSION_METRIC_HPP_
#define LIGHTGBM_METRIC_REGRESSION_METRIC_HPP_
#include <LightGBM/metric.h>
#include <LightGBM/utils/log.h>
#include <string>
#include <string>
#include <algorithm>
#include <algorithm>
#include <cmath>
#include <cmath>
#include <vector>
#include <vector>
#include <LightGBM/metric.h>
#include <LightGBM/utils/log.h>
namespace
LightGBM
{
namespace
LightGBM
{
/*!
/*!
* \brief Metric for regression task.
* \brief Metric for regression task.
...
...
src/metric/xentropy_metric.hpp
View file @
ac5f5e56
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
#ifndef LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_
#ifndef LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_
#define LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_
#define LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_
#include <string>
#include <algorithm>
#include <sstream>
#include <vector>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
#include <LightGBM/metric.h>
#include <LightGBM/metric.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/log.h>
#include <string>
#include <algorithm>
#include <sstream>
#include <vector>
/*
/*
* Implements three related metrics:
* Implements three related metrics:
*
*
...
...
src/network/linker_topo.cpp
View file @
ac5f5e56
...
@@ -2,15 +2,14 @@
...
@@ -2,15 +2,14 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#include <LightGBM/network.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <string>
#include <string>
#include <unordered_map>
#include <unordered_map>
#include <vector>
#include <vector>
#include <LightGBM/network.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
namespace
LightGBM
{
namespace
LightGBM
{
...
...
src/network/linkers.h
View file @
ac5f5e56
...
@@ -5,6 +5,11 @@
...
@@ -5,6 +5,11 @@
#ifndef LIGHTGBM_NETWORK_LINKERS_H_
#ifndef LIGHTGBM_NETWORK_LINKERS_H_
#define LIGHTGBM_NETWORK_LINKERS_H_
#define LIGHTGBM_NETWORK_LINKERS_H_
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <LightGBM/network.h>
#include <LightGBM/utils/common.h>
#include <string>
#include <string>
#include <algorithm>
#include <algorithm>
#include <chrono>
#include <chrono>
...
@@ -13,11 +18,6 @@
...
@@ -13,11 +18,6 @@
#include <thread>
#include <thread>
#include <vector>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <LightGBM/network.h>
#include <LightGBM/utils/common.h>
#ifdef USE_SOCKET
#ifdef USE_SOCKET
#include "socket_wrapper.hpp"
#include "socket_wrapper.hpp"
#endif
#endif
...
...
src/network/linkers_socket.cpp
View file @
ac5f5e56
...
@@ -4,6 +4,10 @@
...
@@ -4,6 +4,10 @@
*/
*/
#ifdef USE_SOCKET
#ifdef USE_SOCKET
#include <LightGBM/config.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/text_reader.h>
#include <string>
#include <string>
#include <chrono>
#include <chrono>
#include <cstring>
#include <cstring>
...
@@ -12,10 +16,6 @@
...
@@ -12,10 +16,6 @@
#include <unordered_set>
#include <unordered_set>
#include <vector>
#include <vector>
#include <LightGBM/config.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/text_reader.h>
#include "linkers.h"
#include "linkers.h"
namespace
LightGBM
{
namespace
LightGBM
{
...
...
src/network/network.cpp
View file @
ac5f5e56
...
@@ -2,14 +2,13 @@
...
@@ -2,14 +2,13 @@
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
*/
#include <cstdlib>
#include <cstring>
#include <LightGBM/network.h>
#include <LightGBM/network.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/common.h>
#include <cstdlib>
#include <cstring>
#include "linkers.h"
#include "linkers.h"
namespace
LightGBM
{
namespace
LightGBM
{
...
...
src/network/socket_wrapper.hpp
View file @
ac5f5e56
...
@@ -6,13 +6,13 @@
...
@@ -6,13 +6,13 @@
#define LIGHTGBM_NETWORK_SOCKET_WRAPPER_HPP_
#define LIGHTGBM_NETWORK_SOCKET_WRAPPER_HPP_
#ifdef USE_SOCKET
#ifdef USE_SOCKET
#include <LightGBM/utils/log.h>
#include <string>
#include <string>
#include <cerrno>
#include <cerrno>
#include <cstdlib>
#include <cstdlib>
#include <unordered_set>
#include <unordered_set>
#include <LightGBM/utils/log.h>
#if defined(_WIN32)
#if defined(_WIN32)
#ifdef _MSC_VER
#ifdef _MSC_VER
...
...
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