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

Reduced error pruning.
Afficher le fichier Open project: accord-net/framework Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

ReducedErrorPruning() public méthode

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.
Résultat System

Run() public méthode

Computes one pass of the pruning algorithm.
public Run ( ) : double
Résultat double