Snode
Oblique decision tree classifier based on SVM nodes Splitter class
- class Splitter.Snode(clf: SVC, X: ndarray, y: ndarray, features: array, impurity: float, title: str, weight: Optional[ndarray] = None, scaler: Optional[StandardScaler] = None)[source]
Bases:
object
Nodes of the tree that keeps the svm classifier and if testing the dataset assigned to it
Parameters
- clfSVC
Classifier used
- Xnp.ndarray
input dataset in train time (only in testing)
- ynp.ndarray
input labes in train time
- featuresnp.array
features used to compute hyperplane
- impurityfloat
impurity of the node
- titlestr
label describing the route to the node
- weightnp.ndarray, optional
weights applied to input dataset in train time, by default None
- scalerStandardScaler, optional
scaler used if any, by default None