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
c5c60c8f
Unverified
Commit
c5c60c8f
authored
Oct 17, 2025
by
Nikita Titov
Committed by
GitHub
Oct 17, 2025
Browse files
[ci][c++] fixed `build/header_guard` errors from cpplint (#7055)
parent
32781bae
Changes
100
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
60 additions
and
60 deletions
+60
-60
src/treelearner/col_sampler.hpp
src/treelearner/col_sampler.hpp
+3
-3
src/treelearner/cost_effective_gradient_boosting.hpp
src/treelearner/cost_effective_gradient_boosting.hpp
+3
-3
src/treelearner/cuda/cuda_best_split_finder.hpp
src/treelearner/cuda/cuda_best_split_finder.hpp
+3
-3
src/treelearner/cuda/cuda_data_partition.hpp
src/treelearner/cuda/cuda_data_partition.hpp
+3
-3
src/treelearner/cuda/cuda_gradient_discretizer.hpp
src/treelearner/cuda/cuda_gradient_discretizer.hpp
+3
-3
src/treelearner/cuda/cuda_histogram_constructor.hpp
src/treelearner/cuda/cuda_histogram_constructor.hpp
+3
-3
src/treelearner/cuda/cuda_leaf_splits.hpp
src/treelearner/cuda/cuda_leaf_splits.hpp
+3
-3
src/treelearner/cuda/cuda_single_gpu_tree_learner.hpp
src/treelearner/cuda/cuda_single_gpu_tree_learner.hpp
+3
-3
src/treelearner/data_partition.hpp
src/treelearner/data_partition.hpp
+3
-3
src/treelearner/feature_histogram.hpp
src/treelearner/feature_histogram.hpp
+3
-3
src/treelearner/gpu_tree_learner.h
src/treelearner/gpu_tree_learner.h
+3
-3
src/treelearner/gradient_discretizer.hpp
src/treelearner/gradient_discretizer.hpp
+3
-3
src/treelearner/leaf_splits.hpp
src/treelearner/leaf_splits.hpp
+3
-3
src/treelearner/linear_tree_learner.h
src/treelearner/linear_tree_learner.h
+3
-3
src/treelearner/monotone_constraints.hpp
src/treelearner/monotone_constraints.hpp
+3
-3
src/treelearner/parallel_tree_learner.h
src/treelearner/parallel_tree_learner.h
+3
-3
src/treelearner/serial_tree_learner.h
src/treelearner/serial_tree_learner.h
+3
-3
src/treelearner/split_info.hpp
src/treelearner/split_info.hpp
+3
-3
swig/StringArray.hpp
swig/StringArray.hpp
+3
-3
tests/cpp_tests/testutils.h
tests/cpp_tests/testutils.h
+3
-3
No files found.
src/treelearner/col_sampler.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_COL_SAMPLER_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_COL_SAMPLER_HPP_
#define LIGHTGBM_TREELEARNER_COL_SAMPLER_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_COL_SAMPLER_HPP_
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -204,4 +204,4 @@ class ColSampler {
...
@@ -204,4 +204,4 @@ class ColSampler {
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_TREELEARNER_COL_SAMPLER_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_COL_SAMPLER_HPP_
src/treelearner/cost_effective_gradient_boosting.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_COST_EFFECTIVE_GRADIENT_BOOSTING_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_COST_EFFECTIVE_GRADIENT_BOOSTING_HPP_
#define LIGHTGBM_TREELEARNER_COST_EFFECTIVE_GRADIENT_BOOSTING_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_COST_EFFECTIVE_GRADIENT_BOOSTING_HPP_
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
...
@@ -171,4 +171,4 @@ class CostEfficientGradientBoosting {
...
@@ -171,4 +171,4 @@ class CostEfficientGradientBoosting {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_TREELEARNER_COST_EFFECTIVE_GRADIENT_BOOSTING_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_COST_EFFECTIVE_GRADIENT_BOOSTING_HPP_
src/treelearner/cuda/cuda_best_split_finder.hpp
View file @
c5c60c8f
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_CUDA_CUDA_BEST_SPLIT_FINDER_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_BEST_SPLIT_FINDER_HPP_
#define LIGHTGBM_TREELEARNER_CUDA_CUDA_BEST_SPLIT_FINDER_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_BEST_SPLIT_FINDER_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -241,4 +241,4 @@ class CUDABestSplitFinder {
...
@@ -241,4 +241,4 @@ class CUDABestSplitFinder {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_TREELEARNER_CUDA_CUDA_BEST_SPLIT_FINDER_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_BEST_SPLIT_FINDER_HPP_
src/treelearner/cuda/cuda_data_partition.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_CUDA_CUDA_DATA_PARTITION_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_DATA_PARTITION_HPP_
#define LIGHTGBM_TREELEARNER_CUDA_CUDA_DATA_PARTITION_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_DATA_PARTITION_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -393,4 +393,4 @@ class CUDADataPartition {
...
@@ -393,4 +393,4 @@ class CUDADataPartition {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_TREELEARNER_CUDA_CUDA_DATA_PARTITION_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_DATA_PARTITION_HPP_
src/treelearner/cuda/cuda_gradient_discretizer.hpp
View file @
c5c60c8f
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_CUDA_CUDA_GRADIENT_DISCRETIZER_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_GRADIENT_DISCRETIZER_HPP_
#define LIGHTGBM_TREELEARNER_CUDA_CUDA_GRADIENT_DISCRETIZER_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_GRADIENT_DISCRETIZER_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -115,4 +115,4 @@ class CUDAGradientDiscretizer: public GradientDiscretizer {
...
@@ -115,4 +115,4 @@ class CUDAGradientDiscretizer: public GradientDiscretizer {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_TREELEARNER_CUDA_CUDA_GRADIENT_DISCRETIZER_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_GRADIENT_DISCRETIZER_HPP_
src/treelearner/cuda/cuda_histogram_constructor.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_CUDA_CUDA_HISTOGRAM_CONSTRUCTOR_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_HISTOGRAM_CONSTRUCTOR_HPP_
#define LIGHTGBM_TREELEARNER_CUDA_CUDA_HISTOGRAM_CONSTRUCTOR_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_HISTOGRAM_CONSTRUCTOR_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -193,4 +193,4 @@ class CUDAHistogramConstructor {
...
@@ -193,4 +193,4 @@ class CUDAHistogramConstructor {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_TREELEARNER_CUDA_CUDA_HISTOGRAM_CONSTRUCTOR_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_HISTOGRAM_CONSTRUCTOR_HPP_
src/treelearner/cuda/cuda_leaf_splits.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_CUDA_CUDA_LEAF_SPLITS_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_LEAF_SPLITS_HPP_
#define LIGHTGBM_TREELEARNER_CUDA_CUDA_LEAF_SPLITS_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_LEAF_SPLITS_HPP_
#ifdef USE_CUDA
#ifdef USE_CUDA
...
@@ -176,4 +176,4 @@ class CUDALeafSplits {
...
@@ -176,4 +176,4 @@ class CUDALeafSplits {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_TREELEARNER_CUDA_CUDA_LEAF_SPLITS_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_LEAF_SPLITS_HPP_
src/treelearner/cuda/cuda_single_gpu_tree_learner.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_CUDA_CUDA_SINGLE_GPU_TREE_LEARNER_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_SINGLE_GPU_TREE_LEARNER_HPP_
#define LIGHTGBM_TREELEARNER_CUDA_CUDA_SINGLE_GPU_TREE_LEARNER_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_SINGLE_GPU_TREE_LEARNER_HPP_
#include <memory>
#include <memory>
#include <vector>
#include <vector>
...
@@ -162,4 +162,4 @@ class CUDASingleGPUTreeLearner: public SerialTreeLearner {
...
@@ -162,4 +162,4 @@ class CUDASingleGPUTreeLearner: public SerialTreeLearner {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // USE_CUDA
#endif // USE_CUDA
#endif // LIGHTGBM_TREELEARNER_CUDA_CUDA_SINGLE_GPU_TREE_LEARNER_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_CUDA_CUDA_SINGLE_GPU_TREE_LEARNER_HPP_
src/treelearner/data_partition.hpp
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* 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.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_DATA_PARTITION_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_DATA_PARTITION_HPP_
#define LIGHTGBM_TREELEARNER_DATA_PARTITION_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_DATA_PARTITION_HPP_
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -167,4 +167,4 @@ class DataPartition {
...
@@ -167,4 +167,4 @@ class DataPartition {
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ightGBM
_TREELEARNER_DATA_PARTITION_HPP_
#endif // L
IGHTGBM_SRC
_TREELEARNER_DATA_PARTITION_HPP_
src/treelearner/feature_histogram.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_FEATURE_HISTOGRAM_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_FEATURE_HISTOGRAM_HPP_
#define LIGHTGBM_TREELEARNER_FEATURE_HISTOGRAM_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_FEATURE_HISTOGRAM_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/bin.h>
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
...
@@ -1594,4 +1594,4 @@ class HistogramPool {
...
@@ -1594,4 +1594,4 @@ class HistogramPool {
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ightGBM
_TREELEARNER_FEATURE_HISTOGRAM_HPP_
#endif // L
IGHTGBM_SRC
_TREELEARNER_FEATURE_HISTOGRAM_HPP_
src/treelearner/gpu_tree_learner.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Copyright (c) 2017 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.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_GPU_TREE_LEARNER_H_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_GPU_TREE_LEARNER_H_
#define LIGHTGBM_TREELEARNER_GPU_TREE_LEARNER_H_
#define LIGHTGBM_
SRC_
TREELEARNER_GPU_TREE_LEARNER_H_
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
#include <LightGBM/feature_group.h>
#include <LightGBM/feature_group.h>
...
@@ -284,4 +284,4 @@ class GPUTreeLearner: public SerialTreeLearner {
...
@@ -284,4 +284,4 @@ class GPUTreeLearner: public SerialTreeLearner {
#endif // USE_GPU
#endif // USE_GPU
#endif // L
ightGBM
_TREELEARNER_GPU_TREE_LEARNER_H_
#endif // L
IGHTGBM_SRC
_TREELEARNER_GPU_TREE_LEARNER_H_
src/treelearner/gradient_discretizer.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREE
_
LEARNER_GRADIENT_DISCRETIZER_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_GRADIENT_DISCRETIZER_HPP_
#define LIGHTGBM_TREE
_
LEARNER_GRADIENT_DISCRETIZER_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_GRADIENT_DISCRETIZER_HPP_
#include <LightGBM/bin.h>
#include <LightGBM/bin.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -125,4 +125,4 @@ class GradientDiscretizer {
...
@@ -125,4 +125,4 @@ class GradientDiscretizer {
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_TREE
_
LEARNER_GRADIENT_DISCRETIZER_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_GRADIENT_DISCRETIZER_HPP_
src/treelearner/leaf_splits.hpp
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* 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.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_LEAF_SPLITS_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_LEAF_SPLITS_HPP_
#define LIGHTGBM_TREELEARNER_LEAF_SPLITS_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_LEAF_SPLITS_HPP_
#include <LightGBM/config.h>
#include <LightGBM/config.h>
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -272,4 +272,4 @@ class LeafSplits {
...
@@ -272,4 +272,4 @@ class LeafSplits {
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ightGBM
_TREELEARNER_LEAF_SPLITS_HPP_
#endif // L
IGHTGBM_SRC
_TREELEARNER_LEAF_SPLITS_HPP_
src/treelearner/linear_tree_learner.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2020 Microsoft Corporation. All rights reserved.
* Copyright (c) 2020 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.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_LINEAR_TREE_LEARNER_H_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_LINEAR_TREE_LEARNER_H_
#define LIGHTGBM_TREELEARNER_LINEAR_TREE_LEARNER_H_
#define LIGHTGBM_
SRC_
TREELEARNER_LINEAR_TREE_LEARNER_H_
#include <cmath>
#include <cmath>
#include <cstdio>
#include <cstdio>
...
@@ -126,4 +126,4 @@ class LinearTreeLearner: public TREE_LEARNER_TYPE {
...
@@ -126,4 +126,4 @@ class LinearTreeLearner: public TREE_LEARNER_TYPE {
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ightGBM
_TREELEARNER_LINEAR_TREE_LEARNER_H_
#endif // L
IGHTGBM_SRC
_TREELEARNER_LINEAR_TREE_LEARNER_H_
src/treelearner/monotone_constraints.hpp
View file @
c5c60c8f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* Licensed under the MIT License. See LICENSE file in the project root for
* Licensed under the MIT License. See LICENSE file in the project root for
* license information.
* license information.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_MONOTONE_CONSTRAINTS_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_MONOTONE_CONSTRAINTS_HPP_
#define LIGHTGBM_TREELEARNER_MONOTONE_CONSTRAINTS_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_MONOTONE_CONSTRAINTS_HPP_
#include <LightGBM/tree.h>
#include <LightGBM/tree.h>
...
@@ -1183,4 +1183,4 @@ LeafConstraintsBase* LeafConstraintsBase::Create(const Config* config,
...
@@ -1183,4 +1183,4 @@ LeafConstraintsBase* LeafConstraintsBase::Create(const Config* config,
}
}
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_TREELEARNER_MONOTONE_CONSTRAINTS_HPP_
#endif // LIGHTGBM_
SRC_
TREELEARNER_MONOTONE_CONSTRAINTS_HPP_
src/treelearner/parallel_tree_learner.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* 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.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_PARALLEL_TREE_LEARNER_H_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_PARALLEL_TREE_LEARNER_H_
#define LIGHTGBM_TREELEARNER_PARALLEL_TREE_LEARNER_H_
#define LIGHTGBM_
SRC_
TREELEARNER_PARALLEL_TREE_LEARNER_H_
#include <LightGBM/network.h>
#include <LightGBM/network.h>
#include <LightGBM/utils/array_args.h>
#include <LightGBM/utils/array_args.h>
...
@@ -232,4 +232,4 @@ inline void SyncUpGlobalBestSplit(char* input_buffer_, char* output_buffer_, Spl
...
@@ -232,4 +232,4 @@ inline void SyncUpGlobalBestSplit(char* input_buffer_, char* output_buffer_, Spl
}
}
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ightGBM
_TREELEARNER_PARALLEL_TREE_LEARNER_H_
#endif // L
IGHTGBM_SRC
_TREELEARNER_PARALLEL_TREE_LEARNER_H_
src/treelearner/serial_tree_learner.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* 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.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_SERIAL_TREE_LEARNER_H_
#define LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_
#define LIGHTGBM_
SRC_
TREELEARNER_SERIAL_TREE_LEARNER_H_
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
#include <LightGBM/tree.h>
#include <LightGBM/tree.h>
...
@@ -247,4 +247,4 @@ inline data_size_t SerialTreeLearner::GetGlobalDataCountInLeaf(int leaf_idx) con
...
@@ -247,4 +247,4 @@ inline data_size_t SerialTreeLearner::GetGlobalDataCountInLeaf(int leaf_idx) con
}
}
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ightGBM
_TREELEARNER_SERIAL_TREE_LEARNER_H_
#endif // L
IGHTGBM_SRC
_TREELEARNER_SERIAL_TREE_LEARNER_H_
src/treelearner/split_info.hpp
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* 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.
*/
*/
#ifndef LIGHTGBM_TREELEARNER_SPLIT_INFO_HPP_
#ifndef LIGHTGBM_
SRC_
TREELEARNER_SPLIT_INFO_HPP_
#define LIGHTGBM_TREELEARNER_SPLIT_INFO_HPP_
#define LIGHTGBM_
SRC_
TREELEARNER_SPLIT_INFO_HPP_
#include <LightGBM/meta.h>
#include <LightGBM/meta.h>
...
@@ -291,4 +291,4 @@ struct LightSplitInfo {
...
@@ -291,4 +291,4 @@ struct LightSplitInfo {
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif // L
ightGBM
_TREELEARNER_SPLIT_INFO_HPP_
#endif // L
IGHTGBM_SRC
_TREELEARNER_SPLIT_INFO_HPP_
swig/StringArray.hpp
View file @
c5c60c8f
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
*
*
* Author: Alberto Ferreira
* Author: Alberto Ferreira
*/
*/
#ifndef LIGHTGBM_SWIG_STRING
_
ARRAY_H_
#ifndef LIGHTGBM_SWIG_STRINGARRAY_H
PP
_
#define LIGHTGBM_SWIG_STRING
_
ARRAY_H_
#define LIGHTGBM_SWIG_STRINGARRAY_H
PP
_
#include <algorithm>
#include <algorithm>
#include <new>
#include <new>
...
@@ -137,4 +137,4 @@ class StringArray {
...
@@ -137,4 +137,4 @@ class StringArray {
std
::
vector
<
char
*>
_array
;
std
::
vector
<
char
*>
_array
;
};
};
#endif // LIGHTGBM_SWIG_STRING
_
ARRAY_H_
#endif // LIGHTGBM_SWIG_STRINGARRAY_H
PP
_
tests/cpp_tests/testutils.h
View file @
c5c60c8f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* Copyright (c) 2022 Microsoft Corporation. All rights reserved.
* Copyright (c) 2022 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.
*/
*/
#ifndef LIGHTGBM_TESTUTILS_H_
#ifndef LIGHTGBM_
TESTS_CPP_TESTS_
TESTUTILS_H_
#define LIGHTGBM_TESTUTILS_H_
#define LIGHTGBM_
TESTS_CPP_TESTS_
TESTUTILS_H_
#include <LightGBM/c_api.h>
#include <LightGBM/c_api.h>
#include <LightGBM/dataset.h>
#include <LightGBM/dataset.h>
...
@@ -121,4 +121,4 @@ class TestUtils {
...
@@ -121,4 +121,4 @@ class TestUtils {
int32_t
thread_id
);
int32_t
thread_id
);
};
};
}
// namespace LightGBM
}
// namespace LightGBM
#endif // LIGHTGBM_TESTUTILS_H_
#endif // LIGHTGBM_
TESTS_CPP_TESTS_
TESTUTILS_H_
Prev
1
2
3
4
5
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