R/utils.R

#' @export

GetNodeLabel <- function(node) {
  if(node$isLeaf) {
    label = node$class
  } else {
    label = node$feature
  }
}

#' @export

GetEdgeLabel <- function(node) {
  if(!node$isRoot) {
    label = node$name
  }
}
msats5/capstoneProject documentation built on May 18, 2019, 12:27 p.m.