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
abc2da82
Commit
abc2da82
authored
Oct 14, 2017
by
Albert HK Cheng
Committed by
Guolin Ke
Oct 14, 2017
Browse files
add default_left to lgb.model.dt.tree (#981)
parent
ef221275
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
R-package/R/lgb.model.dt.tree.R
R-package/R/lgb.model.dt.tree.R
+3
-0
No files found.
R-package/R/lgb.model.dt.tree.R
View file @
abc2da82
...
...
@@ -20,6 +20,7 @@
#' \item \code{split_gain}: Split gain of a node
#' \item \code{threshold}: Spliting threshold value of a node
#' \item \code{decision_type}: Decision type of a node
#' \item \code{default_left}: Determine how to handle NA value, TRUE -> Left, FALSE -> Right
#' \item \code{internal_value}: Node value
#' \item \code{internal_count}: The number of observation collected by a node
#' \item \code{leaf_value}: Leaf value
...
...
@@ -92,6 +93,7 @@ single.tree.parse <- function(lgb_tree) {
split_gain
=
numeric
(
0
),
threshold
=
numeric
(
0
),
decision_type
=
character
(
0
),
default_left
=
character
(
0
),
internal_value
=
integer
(
0
),
internal_count
=
integer
(
0
),
leaf_value
=
integer
(
0
),
...
...
@@ -110,6 +112,7 @@ single.tree.parse <- function(lgb_tree) {
"split_gain"
,
"threshold"
,
"decision_type"
,
"default_left"
,
"internal_value"
,
"internal_count"
)],
"depth"
=
current_depth
,
...
...
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