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
32ef7603
Commit
32ef7603
authored
Apr 13, 2019
by
Nikita Titov
Committed by
Guolin Ke
Apr 13, 2019
Browse files
added copyright message in files (#2101)
parent
50ce01b5
Changes
95
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
110 additions
and
29 deletions
+110
-29
helpers/parameter_generator.py
helpers/parameter_generator.py
+8
-1
include/LightGBM/R_object_helper.h
include/LightGBM/R_object_helper.h
+10
-5
include/LightGBM/application.h
include/LightGBM/application.h
+4
-0
include/LightGBM/bin.h
include/LightGBM/bin.h
+4
-0
include/LightGBM/boosting.h
include/LightGBM/boosting.h
+4
-0
include/LightGBM/c_api.h
include/LightGBM/c_api.h
+4
-0
include/LightGBM/config.h
include/LightGBM/config.h
+7
-1
include/LightGBM/dataset.h
include/LightGBM/dataset.h
+4
-0
include/LightGBM/dataset_loader.h
include/LightGBM/dataset_loader.h
+4
-0
include/LightGBM/export.h
include/LightGBM/export.h
+4
-0
include/LightGBM/feature_group.h
include/LightGBM/feature_group.h
+4
-0
include/LightGBM/json11.hpp
include/LightGBM/json11.hpp
+21
-22
include/LightGBM/lightgbm_R.h
include/LightGBM/lightgbm_R.h
+4
-0
include/LightGBM/meta.h
include/LightGBM/meta.h
+4
-0
include/LightGBM/metric.h
include/LightGBM/metric.h
+4
-0
include/LightGBM/network.h
include/LightGBM/network.h
+4
-0
include/LightGBM/objective_function.h
include/LightGBM/objective_function.h
+4
-0
include/LightGBM/prediction_early_stop.h
include/LightGBM/prediction_early_stop.h
+4
-0
include/LightGBM/tree.h
include/LightGBM/tree.h
+4
-0
include/LightGBM/tree_learner.h
include/LightGBM/tree_learner.h
+4
-0
No files found.
helpers/parameter_generator.py
View file @
32ef7603
...
@@ -260,7 +260,14 @@ def gen_parameter_code(config_hpp, config_out_cpp):
...
@@ -260,7 +260,14 @@ def gen_parameter_code(config_hpp, config_out_cpp):
keys
,
infos
=
get_parameter_infos
(
config_hpp
)
keys
,
infos
=
get_parameter_infos
(
config_hpp
)
names
=
get_names
(
infos
)
names
=
get_names
(
infos
)
alias
=
get_alias
(
infos
)
alias
=
get_alias
(
infos
)
str_to_write
=
"/// This file is auto generated by LightGBM
\\
helpers
\\
parameter_generator.py from LightGBM
\\
include
\\
LightGBM
\\
config.h file.
\n
"
str_to_write
=
r
"""/*!
* Copyright (c) 2018 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*
* \note
* This file is auto generated by LightGBM\helpers\parameter_generator.py from LightGBM\include\LightGBM\config.h file.
*/
"""
str_to_write
+=
"#include<LightGBM/config.h>
\n
namespace LightGBM {
\n
"
str_to_write
+=
"#include<LightGBM/config.h>
\n
namespace LightGBM {
\n
"
# alias table
# alias table
str_to_write
+=
"std::unordered_map<std::string, std::string> Config::alias_table({
\n
"
str_to_write
+=
"std::unordered_map<std::string, std::string> Config::alias_table({
\n
"
...
...
include/LightGBM/R_object_helper.h
View file @
32ef7603
/*
/*!
* A simple wrapper for accessing data in R object.
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Due to license issue, we cannot include R's header file, so use this simple wrapper instead.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
* However, if R changes the way it defines objects, this file will need to be updated as well.
*
*/
* \brief A simple wrapper for accessing data in R object.
*
* \note
* Due to license issue, we cannot include R's header file, so use this simple wrapper instead.
* However, if R changes the way it defines objects, this file will need to be updated as well.
*/
#ifndef R_OBJECT_HELPER_H_
#ifndef R_OBJECT_HELPER_H_
#define R_OBJECT_HELPER_H_
#define R_OBJECT_HELPER_H_
...
...
include/LightGBM/application.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_APPLICATION_H_
#ifndef LIGHTGBM_APPLICATION_H_
#define LIGHTGBM_APPLICATION_H_
#define LIGHTGBM_APPLICATION_H_
...
...
include/LightGBM/bin.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BIN_H_
#ifndef LIGHTGBM_BIN_H_
#define LIGHTGBM_BIN_H_
#define LIGHTGBM_BIN_H_
...
...
include/LightGBM/boosting.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_BOOSTING_H_
#ifndef LIGHTGBM_BOOSTING_H_
#define LIGHTGBM_BOOSTING_H_
#define LIGHTGBM_BOOSTING_H_
...
...
include/LightGBM/c_api.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_C_API_H_
#ifndef LIGHTGBM_C_API_H_
#define LIGHTGBM_C_API_H_
#define LIGHTGBM_C_API_H_
...
...
include/LightGBM/config.h
View file @
32ef7603
/// desc and descl2 fields must be written in reStructuredText format
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*
* \note
* desc and descl2 fields must be written in reStructuredText format
*/
#ifndef LIGHTGBM_CONFIG_H_
#ifndef LIGHTGBM_CONFIG_H_
#define LIGHTGBM_CONFIG_H_
#define LIGHTGBM_CONFIG_H_
...
...
include/LightGBM/dataset.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_DATASET_H_
#ifndef LIGHTGBM_DATASET_H_
#define LIGHTGBM_DATASET_H_
#define LIGHTGBM_DATASET_H_
...
...
include/LightGBM/dataset_loader.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_DATASET_LOADER_H_
#ifndef LIGHTGBM_DATASET_LOADER_H_
#define LIGHTGBM_DATASET_LOADER_H_
#define LIGHTGBM_DATASET_LOADER_H_
...
...
include/LightGBM/export.h
View file @
32ef7603
/*!
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_EXPORT_H_
#ifndef LIGHTGBM_EXPORT_H_
#define LIGHTGBM_EXPORT_H_
#define LIGHTGBM_EXPORT_H_
...
...
include/LightGBM/feature_group.h
View file @
32ef7603
/*!
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_FEATURE_GROUP_H_
#ifndef LIGHTGBM_FEATURE_GROUP_H_
#define LIGHTGBM_FEATURE_GROUP_H_
#define LIGHTGBM_FEATURE_GROUP_H_
...
...
include/LightGBM/json11.hpp
View file @
32ef7603
/* Copyright (c) 2013 Dropbox, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
/* json11
/* json11
*
*
* json11 is a tiny JSON library for C++11, providing JSON parsing and serialization.
* json11 is a tiny JSON library for C++11, providing JSON parsing and serialization.
...
@@ -26,28 +47,6 @@
...
@@ -26,28 +47,6 @@
* or long long to avoid the Y2038K problem; a double storing microseconds since some epoch
* or long long to avoid the Y2038K problem; a double storing microseconds since some epoch
* will be exact for +/- 275 years.)
* will be exact for +/- 275 years.)
*/
*/
/* Copyright (c) 2013 Dropbox, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#pragma once
#pragma once
#include <string>
#include <string>
...
...
include/LightGBM/lightgbm_R.h
View file @
32ef7603
/*!
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_R_H_
#ifndef LIGHTGBM_R_H_
#define LIGHTGBM_R_H_
#define LIGHTGBM_R_H_
...
...
include/LightGBM/meta.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_META_H_
#ifndef LIGHTGBM_META_H_
#define LIGHTGBM_META_H_
#define LIGHTGBM_META_H_
...
...
include/LightGBM/metric.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_METRIC_H_
#ifndef LIGHTGBM_METRIC_H_
#define LIGHTGBM_METRIC_H_
#define LIGHTGBM_METRIC_H_
...
...
include/LightGBM/network.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_NETWORK_H_
#ifndef LIGHTGBM_NETWORK_H_
#define LIGHTGBM_NETWORK_H_
#define LIGHTGBM_NETWORK_H_
...
...
include/LightGBM/objective_function.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_OBJECTIVE_FUNCTION_H_
#ifndef LIGHTGBM_OBJECTIVE_FUNCTION_H_
#define LIGHTGBM_OBJECTIVE_FUNCTION_H_
#define LIGHTGBM_OBJECTIVE_FUNCTION_H_
...
...
include/LightGBM/prediction_early_stop.h
View file @
32ef7603
/*!
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#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/tree.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_TREE_H_
#ifndef LIGHTGBM_TREE_H_
#define LIGHTGBM_TREE_H_
#define LIGHTGBM_TREE_H_
...
...
include/LightGBM/tree_learner.h
View file @
32ef7603
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_TREE_LEARNER_H_
#ifndef LIGHTGBM_TREE_LEARNER_H_
#define LIGHTGBM_TREE_LEARNER_H_
#define LIGHTGBM_TREE_LEARNER_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