Recursively prints the structure of an SVM-based decision tree.

print_svm_tree(
  tree,
  indent = "",
  show_probabilities = FALSE,
  show_feature_info = TRUE,
  show_penalties = TRUE
)

Arguments

tree

An object of class svmodt_node (leaf or tree).

indent

String used for indentation (for recursive calls).

show_probabilities

Logical; whether to display class probabilities at leaf nodes.

show_feature_info

Logical; whether to show features used at nodes.

show_penalties

Logical; whether to show penalty flags at nodes.

Value

Invisibly returns NULL. Prints to console.