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
c7ef8322
Commit
c7ef8322
authored
Dec 15, 2016
by
Guolin Ke
Committed by
GitHub
Dec 15, 2016
Browse files
quick fix for #125
parent
b7947c85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/io/tree.cpp
src/io/tree.cpp
+2
-2
No files found.
src/io/tree.cpp
View file @
c7ef8322
...
@@ -39,8 +39,8 @@ Tree::Tree(int max_leaves)
...
@@ -39,8 +39,8 @@ Tree::Tree(int max_leaves)
internal_value_
=
std
::
vector
<
double
>
(
max_leaves_
-
1
);
internal_value_
=
std
::
vector
<
double
>
(
max_leaves_
-
1
);
internal_count_
=
std
::
vector
<
data_size_t
>
(
max_leaves_
-
1
);
internal_count_
=
std
::
vector
<
data_size_t
>
(
max_leaves_
-
1
);
leaf_depth_
=
std
::
vector
<
int
>
(
max_leaves_
);
leaf_depth_
=
std
::
vector
<
int
>
(
max_leaves_
);
// root is in the depth
1
// root is in the depth
0
leaf_depth_
[
0
]
=
1
;
leaf_depth_
[
0
]
=
0
;
num_leaves_
=
1
;
num_leaves_
=
1
;
leaf_parent_
[
0
]
=
-
1
;
leaf_parent_
[
0
]
=
-
1
;
}
}
...
...
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