The following workflow can be used to fit a decision tree or a decision forest model and use it to make predictions,
Decision trees
Initialize a
aoclda.decision_tree.decision_tree()object with options set in the class constructor.Fit the model using
aoclda.decision_tree.decision_tree.fit().Evaluate prediction accuracy on test data using
aoclda.decision_tree.decision_tree.score().Make predictions using the fitted model using
aoclda.decision_tree.decision_tree.predict().
Decision forests
Initialize a
aoclda.decision_forest.decision_forest()object with options set in the class constructor.Fit the model using the
aoclda.decision_forest.decision_forest.fit().Evaluate prediction accuracy on test data using
aoclda.decision_forest.decision_forest.score().Make predictions using the fitted model using
aoclda.decision_forest.decision_forest.predict().
Decision trees
Initialize a
da_handlewithda_handle_typeda_handle_decision_tree.Pass data to the handle using da_tree_set_training_data_?.
Set optional parameters, such as maximum depth, using da_options_set_? (see options section).
Fit the model using da_tree_fit_?.
Evaluate prediction accuracy on test data using da_tree_score_?.
Make predictions using the fitted model using da_tree_predict_?.
Decision forests
Initialize a
da_handlewithda_handle_typeda_handle_decision_forest.Pass data to the handle using da_forest_set_training_data_?.
Set optional parameters, such as maximum depth, using da_options_set_? (see options section).
Fit the model using da_forest_fit_?.
Evaluate prediction accuracy on test data using da_forest_score_?.
Make predictions using the fitted model using da_forest_predict_?.