Point Cloud Library (PCL)
1.9.1
|
Utility class for evaluating a decision tree. More...
#include <pcl/ml/dt/decision_tree_evaluator.h>
Public Member Functions | |
DecisionTreeEvaluator () | |
Constructor. More... | |
virtual | ~DecisionTreeEvaluator () |
Destructor. More... | |
void | evaluate (pcl::DecisionTree< NodeType > &tree, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< LabelType > &label_data) |
Evaluates the specified examples using the supplied tree. More... | |
void | evaluateAndAdd (pcl::DecisionTree< NodeType > &tree, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< LabelType > &label_data) |
Evaluates the specified examples using the supplied tree and adds the results to the supplied results array. More... | |
void | evaluate (pcl::DecisionTree< NodeType > &tree, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, ExampleIndex example, NodeType &leave) |
Evaluates the specified examples using the supplied tree. More... | |
void | getNodes (pcl::DecisionTree< NodeType > &tree, pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > &feature_handler, pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > &stats_estimator, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< NodeType * > &nodes) |
Evaluates the specified examples using the supplied tree. More... | |
Utility class for evaluating a decision tree.
Definition at line 59 of file decision_tree_evaluator.h.
pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::DecisionTreeEvaluator | ( | ) |
Constructor.
Definition at line 52 of file decision_tree_evaluator.hpp.
|
virtual |
Destructor.
Definition at line 58 of file decision_tree_evaluator.hpp.
void pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate | ( | pcl::DecisionTree< NodeType > & | tree, |
pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > & | feature_handler, | ||
pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > & | stats_estimator, | ||
DataSet & | data_set, | ||
std::vector< ExampleIndex > & | examples, | ||
std::vector< LabelType > & | label_data | ||
) |
Evaluates the specified examples using the supplied tree.
[in] | tree | The decision tree. |
[in] | feature_handler | The feature handler used to train the tree. |
[in] | stats_estimator | The statistics estimation instance used while training the tree. |
[in] | data_set | The data set used for evaluation. |
[in] | examples | The examples that have to be evaluated. |
[out] | label_data | The destination for the resulting label data. |
Definition at line 65 of file decision_tree_evaluator.hpp.
References pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::computeBranchIndex(), pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::getLabelOfNode(), and pcl::DecisionTree< NodeType >::getRoot().
void pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluate | ( | pcl::DecisionTree< NodeType > & | tree, |
pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > & | feature_handler, | ||
pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > & | stats_estimator, | ||
DataSet & | data_set, | ||
ExampleIndex | example, | ||
NodeType & | leave | ||
) |
Evaluates the specified examples using the supplied tree.
[in] | tree | The decision tree. |
[in] | feature_handler | The feature handler used to train the tree. |
[in] | stats_estimator | The statistics estimation instance used while training the tree. |
[in] | data_set | The data set used for evaluation. |
[in] | example | The example that has to be evaluated. |
[out] | leave | The leave reached by the examples. |
Definition at line 129 of file decision_tree_evaluator.hpp.
References pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::computeBranchIndex(), pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature(), and pcl::DecisionTree< NodeType >::getRoot().
void pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::evaluateAndAdd | ( | pcl::DecisionTree< NodeType > & | tree, |
pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > & | feature_handler, | ||
pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > & | stats_estimator, | ||
DataSet & | data_set, | ||
std::vector< ExampleIndex > & | examples, | ||
std::vector< LabelType > & | label_data | ||
) |
Evaluates the specified examples using the supplied tree and adds the results to the supplied results array.
[in] | tree | The decision tree. |
[in] | feature_handler | The feature handler used to train the tree. |
[in] | stats_estimator | The statistics estimation instance used while training the tree. |
[in] | data_set | The data set used for evaluation. |
[in] | examples | The examples that have to be evaluated. |
[out] | label_data | The destination where the resulting label data is added to. |
Definition at line 98 of file decision_tree_evaluator.hpp.
References pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::computeBranchIndex(), pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature(), pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::getLabelOfNode(), and pcl::DecisionTree< NodeType >::getRoot().
void pcl::DecisionTreeEvaluator< FeatureType, DataSet, LabelType, ExampleIndex, NodeType >::getNodes | ( | pcl::DecisionTree< NodeType > & | tree, |
pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex > & | feature_handler, | ||
pcl::StatsEstimator< LabelType, NodeType, DataSet, ExampleIndex > & | stats_estimator, | ||
DataSet & | data_set, | ||
std::vector< ExampleIndex > & | examples, | ||
std::vector< NodeType * > & | nodes | ||
) |
Evaluates the specified examples using the supplied tree.
[in] | tree | The decision tree. |
[in] | feature_handler | The feature handler used to train the tree. |
[in] | stats_estimator | The statistics estimation instance used while training the tree. |
[in] | data_set | The data set used for evaluation. |
[in] | examples | The examples that have to be evaluated. |
[out] | nodes | The leaf-nodes reached while evaluation. |
Definition at line 158 of file decision_tree_evaluator.hpp.
References pcl::StatsEstimator< LabelDataType, NodeType, DataSet, ExampleIndex >::computeBranchIndex(), pcl::FeatureHandler< FeatureType, DataSet, ExampleIndex >::evaluateFeature(), and pcl::DecisionTree< NodeType >::getRoot().