DTBPruning.h 894 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * @file DTBPruning.h
  3. * @brief simple pruning methods
  4. * @author Erik Rodner
  5. * @date 05/06/2008
  6. */
  7. #ifndef DTBPruningINCLUDE
  8. #define DTBPruningINCLUDE
  9. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "DecisionTreeBuilder.h"
  12. namespace OBJREC {
  13. /** build decision trees */
  14. class DTBPruning : public DecisionTreeBuilder
  15. {
  16. protected:
  17. double minimum_entropy;
  18. DecisionTreeBuilder *builder;
  19. public:
  20. /** simple constructor */
  21. // refactor-nice.pl: check this substitution
  22. // old: DTBPruning( const NICE::Config *conf, string section, DecisionTreeBuilder *builder );
  23. DTBPruning( const NICE::Config *conf, std::string section, DecisionTreeBuilder *builder );
  24. /** simple destructor */
  25. virtual ~DTBPruning();
  26. DecisionNode *build ( const FeaturePool & fp,
  27. const Examples & examples, int maxClassNo );
  28. };
  29. } // namespace
  30. #endif