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
3d25e373
"python-package/vscode:/vscode.git/clone" did not exist on "581d53c6af6c72a221944bbcd656b608044ee9b0"
Unverified
Commit
3d25e373
authored
Apr 23, 2022
by
James Lamb
Committed by
GitHub
Apr 23, 2022
Browse files
fix typo in CEGB method name (#5168)
parent
f68b8541
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/treelearner/cost_effective_gradient_boosting.hpp
src/treelearner/cost_effective_gradient_boosting.hpp
+1
-1
src/treelearner/serial_tree_learner.cpp
src/treelearner/serial_tree_learner.cpp
+1
-1
No files found.
src/treelearner/cost_effective_gradient_boosting.hpp
View file @
3d25e373
...
@@ -63,7 +63,7 @@ class CostEfficientGradientBoosting {
...
@@ -63,7 +63,7 @@ class CostEfficientGradientBoosting {
}
}
init_
=
true
;
init_
=
true
;
}
}
double
De
t
laGain
(
int
feature_index
,
int
real_fidx
,
int
leaf_index
,
double
Del
t
aGain
(
int
feature_index
,
int
real_fidx
,
int
leaf_index
,
int
num_data_in_leaf
,
SplitInfo
split_info
)
{
int
num_data_in_leaf
,
SplitInfo
split_info
)
{
auto
config
=
tree_learner_
->
config_
;
auto
config
=
tree_learner_
->
config_
;
double
delta
=
double
delta
=
...
...
src/treelearner/serial_tree_learner.cpp
View file @
3d25e373
...
@@ -772,7 +772,7 @@ void SerialTreeLearner::ComputeBestSplitForFeature(
...
@@ -772,7 +772,7 @@ void SerialTreeLearner::ComputeBestSplitForFeature(
new_split
.
feature
=
real_fidx
;
new_split
.
feature
=
real_fidx
;
if
(
cegb_
!=
nullptr
)
{
if
(
cegb_
!=
nullptr
)
{
new_split
.
gain
-=
new_split
.
gain
-=
cegb_
->
De
t
laGain
(
feature_index
,
real_fidx
,
leaf_splits
->
leaf_index
(),
cegb_
->
Del
t
aGain
(
feature_index
,
real_fidx
,
leaf_splits
->
leaf_index
(),
num_data
,
new_split
);
num_data
,
new_split
);
}
}
if
(
new_split
.
monotone_type
!=
0
)
{
if
(
new_split
.
monotone_type
!=
0
)
{
...
...
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