vastorbit.machine_learning.memmodel.tree.Tree¶
- class vastorbit.machine_learning.memmodel.tree.Tree¶
Base Class for tree representation.
- __init__()¶
Methods
__init__()Returns the model attributes.
plot_tree([pic_path])Draws the input tree.
predict(X)Predicts using the
BinaryTreemodel.Returns the model probabilities.
Returns the SQL code needed to deploy the model probabilities.
predict_sql(X)Returns the SQL code needed to deploy the model.
set_attributes(**kwargs)Sets the model attributes.
to_graphviz([feature_names, classes_color, ...])Returns the code for a Graphviz tree.
Attributes
Must be overridden in child class