bazar
1.3.1
|
Set of classifier trees. More...
#include <image_classification_forest.h>
Public Attributes | |
float * | thresholds |
float * | misclassification_rates |
vector < image_classification_tree * > | trees |
int | tree_number |
int | max_depth |
float * | weights |
string | directory_name |
Public Attributes inherited from image_classifier | |
LEARNPROGRESSION | LearnProgression |
int | image_width |
int | image_height |
int | class_number |
Set of classifier trees.
Definition at line 32 of file image_classification_forest.h.
image_classification_forest::image_classification_forest | ( | LEARNPROGRESSION | LearnProgress = 0 | ) |
Definition at line 28 of file image_classification_forest.cpp.
References weights.
image_classification_forest::image_classification_forest | ( | int | image_width, |
int | image_height, | ||
int | class_number, | ||
int | max_depth, | ||
int | trees_number, | ||
LEARNPROGRESSION | LearnProgress = 0 |
||
) |
Definition at line 34 of file image_classification_forest.cpp.
References image_classifier::class_number, max_depth, misclassification_rates, thresholds, tree_number, and weights.
image_classification_forest::~image_classification_forest | ( | ) |
Definition at line 135 of file image_classification_forest.cpp.
References misclassification_rates, thresholds, trees, and weights.
void image_classification_forest::change_class_number_and_reset_probabilities | ( | int | new_class_number | ) |
Definition at line 497 of file image_classification_forest.cpp.
References image_classifier::class_number, trees, and weights.
void image_classification_forest::create_trees_at_random | ( | void | ) |
Definition at line 157 of file image_classification_forest.cpp.
References BUILDING_TREE, image_classification_node::children, image_classification_node::children_number, image_classifier::class_number, image_classification_node::depth, image_classification_node::end_recursion(), image_classification_node::expand(), image_classifier::image_height, image_classifier::image_width, image_classification_node::index, image_classifier::LearnProgression, max_depth, image_classification_tree::node_number(), image_classification_tree::root, image_classification_node::set_Dot(), tree_number, and trees.
|
inline |
Definition at line 62 of file image_classification_forest.h.
References trees.
|
virtual |
Reimplemented from image_classifier.
Definition at line 50 of file image_classification_forest.cpp.
References image_classifier::class_number, image_classifier::image_height, image_classifier::image_width, image_classification_tree::load(), max_depth, misclassification_rates, thresholds, trees, and weights.
|
virtual |
Implements image_classifier.
Definition at line 439 of file image_classification_forest.cpp.
References image_classifier::class_number.
Referenced by recognize().
|
virtual |
Definition at line 448 of file image_classification_forest.cpp.
References image_classifier::class_number, tree_number, and trees.
|
virtual |
Implements image_classifier.
Definition at line 418 of file image_classification_forest.cpp.
References image_classifier::class_number, and posterior_probabilities().
Referenced by test().
|
virtual |
Implements image_classifier.
Definition at line 211 of file image_classification_forest.cpp.
References image_classification_node::children, image_classifier::class_number, image_classification_node::d1, image_classification_node::d2, FOREST_REFINEMENT, example_generator::generate_random_examples(), image_classification_node::is_leaf(), image_classifier::LearnProgression, image_classification_node::P, example_generator::release_examples(), trees, and weights.
void image_classification_forest::reset_class_occurances | ( | int | class_index | ) |
Definition at line 273 of file image_classification_forest.cpp.
void image_classification_forest::restore_occurances | ( | ) |
Definition at line 262 of file image_classification_forest.cpp.
References image_classifier::class_number, trees, and weights.
|
virtual |
Reimplemented from image_classifier.
Definition at line 517 of file image_classification_forest.cpp.
References image_classifier::class_number, misclassification_rates, thresholds, trees, and weights.
void image_classification_forest::set_saving_directory_name | ( | string | directory_name | ) |
Definition at line 152 of file image_classification_forest.cpp.
References directory_name.
|
virtual |
Implements image_classifier.
Definition at line 281 of file image_classification_forest.cpp.
References image_classifier::class_number, example_generator::generate_random_examples(), GENERATING_TESTING_SET, image_classifier::LearnProgression, misclassification_rates, recognize(), example_generator::release_examples(), and thresholds.
string image_classification_forest::directory_name |
Definition at line 70 of file image_classification_forest.h.
Referenced by set_saving_directory_name().
int image_classification_forest::max_depth |
Definition at line 66 of file image_classification_forest.h.
Referenced by create_trees_at_random(), image_classification_forest(), and load().
float* image_classification_forest::misclassification_rates |
Definition at line 57 of file image_classification_forest.h.
Referenced by image_classification_forest(), load(), save(), test(), and ~image_classification_forest().
float* image_classification_forest::thresholds |
Definition at line 56 of file image_classification_forest.h.
Referenced by image_classification_forest(), load(), save(), test(), and ~image_classification_forest().
int image_classification_forest::tree_number |
Definition at line 66 of file image_classification_forest.h.
Referenced by create_trees_at_random(), image_classification_forest(), and posterior_probabilities().
vector<image_classification_tree *> image_classification_forest::trees |
Definition at line 65 of file image_classification_forest.h.
Referenced by change_class_number_and_reset_probabilities(), create_trees_at_random(), is_ok(), load(), posterior_probabilities(), refine(), reset_class_occurances(), restore_occurances(), save(), and ~image_classification_forest().
float* image_classification_forest::weights |
Definition at line 68 of file image_classification_forest.h.
Referenced by change_class_number_and_reset_probabilities(), image_classification_forest(), load(), refine(), reset_class_occurances(), restore_occurances(), save(), and ~image_classification_forest().