C# Class Accord.MachineLearning.DecisionTrees.Pruning.ReducedErrorPruning

Reduced error pruning.
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

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.

Private Methods

Method Description
computeError ( ) : double
computeError ( DecisionNode node ) : double
computeGain ( DecisionNode node ) : double
trackDecisions ( DecisionNode root, double input, int index ) : void

Method Details

ReducedErrorPruning() public method

Initializes a new instance of the ReducedErrorPruning class.
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

Run() public method

Computes one pass of the pruning algorithm.
public Run ( ) : double
return double