#include <clsfy_builder_1d.h>
Inheritance diagram for clsfy_builder_1d:

Definition at line 18 of file clsfy_builder_1d.h.
Public Member Functions | |
| clsfy_builder_1d () | |
| virtual | ~clsfy_builder_1d () |
| virtual clsfy_classifier_1d * | new_classifier () const=0 |
| Create empty model. | |
| virtual double | build (clsfy_classifier_1d &classifier, const vnl_vector< double > &egs, const vnl_vector< double > &wts, const vcl_vector< unsigned > &outputs) const=0 |
| Build a binary_threshold classifier. | |
| virtual double | build (clsfy_classifier_1d &classifier, vnl_vector< double > &egs0, vnl_vector< double > &wts0, vnl_vector< double > &egs1, vnl_vector< double > &wts1) const=0 |
| Build a binary_threshold classifier. | |
| virtual double | build_from_sorted_data (clsfy_classifier_1d &classifier, const vbl_triple< double, int, int > *data, const vnl_vector< double > &wts) const=0 |
| Train classifier, returning weighted error. | |
| virtual vcl_string | is_a () const |
| Name of the class. | |
| virtual bool | is_class (vcl_string const &s) const |
| Name of the class. | |
| virtual clsfy_builder_1d * | clone () const=0 |
| Create a copy on the heap and return base class pointer. | |
| virtual void | print_summary (vcl_ostream &os) const=0 |
| Print class to os. | |
| virtual void | b_write (vsl_b_ostream &bfs) const=0 |
| Save class to binary file stream. | |
| virtual void | b_read (vsl_b_istream &bfs)=0 |
| Load class from binary file stream. | |
| clsfy_builder_1d::clsfy_builder_1d | ( | ) |
Definition at line 15 of file clsfy_builder_1d.cxx.
| clsfy_builder_1d::~clsfy_builder_1d | ( | ) | [virtual] |
Definition at line 21 of file clsfy_builder_1d.cxx.
| virtual clsfy_classifier_1d* clsfy_builder_1d::new_classifier | ( | ) | const [pure virtual] |
Create empty model.
Implemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
| virtual double clsfy_builder_1d::build | ( | clsfy_classifier_1d & | classifier, | |
| const vnl_vector< double > & | egs, | |||
| const vnl_vector< double > & | wts, | |||
| const vcl_vector< unsigned > & | outputs | |||
| ) | const [pure virtual] |
Build a binary_threshold classifier.
Train classifier, returning weighted error Selects parameters of classifier which best separate examples from two classes, weighting examples appropriately when estimating the missclassification rate. Returns weighted sum of error, e.wts, where e_i =0 for correct classifications, e_i=1 for incorrect.
Implemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
| virtual double clsfy_builder_1d::build | ( | clsfy_classifier_1d & | classifier, | |
| vnl_vector< double > & | egs0, | |||
| vnl_vector< double > & | wts0, | |||
| vnl_vector< double > & | egs1, | |||
| vnl_vector< double > & | wts1 | |||
| ) | const [pure virtual] |
Build a binary_threshold classifier.
Train classifier, returning weighted error Selects parameters of classifier which best separate examples from two classes, weighting examples appropriately when estimating the misclassification rate. Returns weighted sum of error, e.wts, where e_i =0 for correct classifications, e_i=1 for incorrect.
Implemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
| virtual double clsfy_builder_1d::build_from_sorted_data | ( | clsfy_classifier_1d & | classifier, | |
| const vbl_triple< double, int, int > * | data, | |||
| const vnl_vector< double > & | wts | |||
| ) | const [pure virtual] |
Train classifier, returning weighted error.
Selects parameters of classifier which best separate examples, weighting examples appropriately when estimating the misclassification rate. data[i] is a triple, {value,class_number,weight} Returns weighted sum of error. Note that input "data" must be sorted to use this routine
Implemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
| vcl_string clsfy_builder_1d::is_a | ( | ) | const [virtual] |
Name of the class.
Reimplemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
Definition at line 35 of file clsfy_builder_1d.cxx.
| bool clsfy_builder_1d::is_class | ( | vcl_string const & | s | ) | const [virtual] |
Name of the class.
Reimplemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
Definition at line 40 of file clsfy_builder_1d.cxx.
| virtual clsfy_builder_1d* clsfy_builder_1d::clone | ( | ) | const [pure virtual] |
Create a copy on the heap and return base class pointer.
Implemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
| virtual void clsfy_builder_1d::print_summary | ( | vcl_ostream & | os | ) | const [pure virtual] |
Print class to os.
Implemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
| virtual void clsfy_builder_1d::b_write | ( | vsl_b_ostream & | bfs | ) | const [pure virtual] |
Save class to binary file stream.
Implemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
| virtual void clsfy_builder_1d::b_read | ( | vsl_b_istream & | bfs | ) | [pure virtual] |
Load class from binary file stream.
Implemented in clsfy_binary_threshold_1d_builder, and clsfy_mean_square_1d_builder.
1.5.1