Méthode | Description | |
---|---|---|
ErrorBasedPruning ( DecisionTree tree, double inputs, int outputs ) : System |
Initializes a new instance of the ErrorBasedPruning class.
|
|
Run ( ) : double |
Computes one pass of the pruning algorithm.
|
Méthode | Description | |
---|---|---|
compute ( DecisionNode node ) : bool |
Attempts to prune a node's subtrees.
|
|
computeError ( ) : double | ||
computeErrorReplacingSubtrees ( DecisionNode tree, DecisionNode child ) : double | ||
computeErrorWithoutSubtree ( DecisionNode tree, int mostCommon ) : double | ||
getMaxChild ( DecisionNode tree ) : DecisionNode | ||
trackDecisions ( DecisionNode root, double input, int index ) : void | ||
upperBound ( double error, int size ) : double |
public ErrorBasedPruning ( 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. |
Résultat | System |