Method | Description | |
---|---|---|
ReducedErrorPruning ( DecisionTree tree, double inputs, int outputs ) : System |
Initializes a new instance of the ReducedErrorPruning class.
|
|
Run ( ) : double |
Computes one pass of the pruning algorithm.
|
Method | Description | |
---|---|---|
computeError ( ) : double | ||
computeError ( DecisionNode node ) : double | ||
computeGain ( DecisionNode node ) : double | ||
trackDecisions ( DecisionNode root, double input, int index ) : void |
public ReducedErrorPruning ( DecisionTree tree, double inputs, int outputs ) : System | ||
tree | DecisionTree | The tree to be pruned. |
inputs | double | The pruning set inputs. |
outputs | int | The pruning set outputs. |
return | System |