decision_trees Module

Decision trees classification algorithm.

@author: drusk

class pml.supervised.decision_trees.interface.DecisionTree(training_set)[source]

Decision tree classifier.

Builds a tree which is like a flow chart. It allows a decision to be reached by checking the values for various features and following the appropriate branches until a destination is reached.

In addition to being useful as a classifier, the structure of the decision tree can lend insight into the data.

__init__(training_set)[source]

Constructs a new decision tree.

Args:
training_set: model.DataSet
The training data to use when building the decision tree.
plot()[source]

Generates a plot of the decision tree to visualize its structure.

Returns:
void

Project Versions

Previous topic

collection_utils Module

Next topic

distance_utils Module

This Page