Class DecisionTree<S extends Script>

java.lang.Object
net.botwithus.rs3.btree.DecisionTree<S>
Type Parameters:
S -

public class DecisionTree<S extends Script> extends Object
A decision tree is a tree where each internal node represents a "test" on an attribute (e.g. whether a coin flip comes up heads or tails), each branch represents the outcome of the test, and each leaf node represents a class label (decision taken after computing all attributes). The paths from root to leaf represent classification rules.
  • Constructor Details

    • DecisionTree

      public DecisionTree(TreeNode<S> root)
  • Method Details

    • run

      public void run(S script)
      Run the decision tree
      Parameters:
      script - the script to run