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

Definition at line 16 of file clsfy_binary_hyperplane_ls_builder.h.
Public Member Functions | |
| clsfy_binary_hyperplane_ls_builder () | |
| virtual clsfy_classifier_base * | new_classifier () const |
| Create a new untrained linear classifier with binary output. | |
| double | build (clsfy_classifier_base &classifier, mbl_data_wrapper< vnl_vector< double > > &inputs, const vcl_vector< unsigned > &outputs) const |
| Build a linear classifier, with the given data. | |
| double | build (clsfy_classifier_base &classifier, mbl_data_wrapper< vnl_vector< double > > &inputs, unsigned n_classes, const vcl_vector< unsigned > &outputs) const |
| Build a linear classifier, with the given data. | |
| short | version_no () const |
| Version number for I/O. | |
| vcl_string | is_a () const |
| Name of the class. | |
| virtual bool | is_class (vcl_string const &s) const |
| Name of the class. | |
| void | print_summary (vcl_ostream &os) const |
| Print class to os. | |
| virtual clsfy_builder_base * | clone () const |
| Create a deep copy. | |
| virtual void | b_write (vsl_b_ostream &) const |
| Save class to binary file stream. | |
| virtual void | b_read (vsl_b_istream &) |
| Load class from binary file stream. | |
| clsfy_binary_hyperplane_ls_builder::clsfy_binary_hyperplane_ls_builder | ( | ) | [inline] |
Definition at line 20 of file clsfy_binary_hyperplane_ls_builder.h.
| virtual clsfy_classifier_base* clsfy_binary_hyperplane_ls_builder::new_classifier | ( | ) | const [inline, virtual] |
Create a new untrained linear classifier with binary output.
Implements clsfy_builder_base.
Definition at line 23 of file clsfy_binary_hyperplane_ls_builder.h.
| double clsfy_binary_hyperplane_ls_builder::build | ( | clsfy_classifier_base & | classifier, | |
| mbl_data_wrapper< vnl_vector< double > > & | inputs, | |||
| const vcl_vector< unsigned > & | outputs | |||
| ) | const |
Build a linear classifier, with the given data.
Return the mean error over the training set.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 51 of file clsfy_binary_hyperplane_ls_builder.cxx.
| double clsfy_binary_hyperplane_ls_builder::build | ( | clsfy_classifier_base & | classifier, | |
| mbl_data_wrapper< vnl_vector< double > > & | inputs, | |||
| unsigned | n_classes, | |||
| const vcl_vector< unsigned > & | outputs | |||
| ) | const [virtual] |
Build a linear classifier, with the given data.
Return the mean error over the training set. n_classes must be 1
Implements clsfy_builder_base.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 130 of file clsfy_binary_hyperplane_ls_builder.cxx.
| short clsfy_binary_hyperplane_ls_builder::version_no | ( | ) | const |
Version number for I/O.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 36 of file clsfy_binary_hyperplane_ls_builder.cxx.
| vcl_string clsfy_binary_hyperplane_ls_builder::is_a | ( | ) | const [virtual] |
Name of the class.
Reimplemented from clsfy_builder_base.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 22 of file clsfy_binary_hyperplane_ls_builder.cxx.
| bool clsfy_binary_hyperplane_ls_builder::is_class | ( | vcl_string const & | s | ) | const [virtual] |
Name of the class.
Reimplemented from clsfy_builder_base.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 29 of file clsfy_binary_hyperplane_ls_builder.cxx.
| void clsfy_binary_hyperplane_ls_builder::print_summary | ( | vcl_ostream & | os | ) | const [virtual] |
Print class to os.
Implements clsfy_builder_base.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 43 of file clsfy_binary_hyperplane_ls_builder.cxx.
| virtual clsfy_builder_base* clsfy_binary_hyperplane_ls_builder::clone | ( | ) | const [inline, virtual] |
Create a deep copy.
client is responsible for deleting returned object.
Implements clsfy_builder_base.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 53 of file clsfy_binary_hyperplane_ls_builder.h.
| void clsfy_binary_hyperplane_ls_builder::b_write | ( | vsl_b_ostream & | ) | const [virtual] |
Save class to binary file stream.
Implements clsfy_builder_base.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 140 of file clsfy_binary_hyperplane_ls_builder.cxx.
| void clsfy_binary_hyperplane_ls_builder::b_read | ( | vsl_b_istream & | ) | [virtual] |
Load class from binary file stream.
Implements clsfy_builder_base.
Reimplemented in clsfy_binary_hyperplane_gmrho_builder.
Definition at line 148 of file clsfy_binary_hyperplane_ls_builder.cxx.
1.5.1