Skip to content

Commit

Permalink
add default_left to lgb.model.dt.tree (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
alberthkcheng authored and guolinke committed Oct 13, 2017
1 parent ef22127 commit abc2da8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R-package/R/lgb.model.dt.tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand All @@ -110,6 +112,7 @@ single.tree.parse <- function(lgb_tree) {
"split_gain",
"threshold",
"decision_type",
"default_left",
"internal_value",
"internal_count")],
"depth" = current_depth,
Expand Down

0 comments on commit abc2da8

Please sign in to comment.