object DecisionTreeID3
The DecisionTreeID3
companion object provides factory methods.
- Alphabetic
- By Inheritance
- DecisionTreeID3
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(xy: MatriI, fn: Strings, k: Int, cn: Strings, hparam: HyperParameter = hp): DecisionTreeID3
Create a decision tree for the given combined matrix where the last column is the response/classification vector.
Create a decision tree for the given combined matrix where the last column is the response/classification vector.
- xy
the combined data matrix (features and response)
- fn
the names for all features/variables
- k
the number of classes
- cn
the names for all classes
- hparam
the hyper-parameters for the decision tree
-
def
test(xy: MatriI, fn: Strings, k: Int, cn: Strings, hparam: HyperParameter = hp): DecisionTreeID3
Test the decision tree on the given dataset passed in as a combined matrix.
Test the decision tree on the given dataset passed in as a combined matrix.
- xy
the combined data matrix (features and response)
- fn
the names for all features/variables
- k
the number of classes
- cn
the names for all classes
- hparam
the hyper-parameters for the decision tree