Implement bits of an abstract classifier. More...
#include "clsfy_classifier_base.h"
#include <vcl_iostream.h>
#include <vcl_cassert.h>
#include <vcl_vector.h>
#include <vsl/vsl_indent.h>
#include <vsl/vsl_binary_loader.h>
Go to the source code of this file.
Functions | |
vcl_ostream & | operator<< (vcl_ostream &os, clsfy_classifier_base const &b) |
Stream output operator for class reference. | |
vcl_ostream & | operator<< (vcl_ostream &os, const clsfy_classifier_base *b) |
Stream output operator for class pointer. | |
void | vsl_add_to_binary_loader (const clsfy_classifier_base &b) |
Allows derived class to be loaded by base-class pointer. | |
void | vsl_b_write (vsl_b_ostream &os, const clsfy_classifier_base &b) |
Binary file stream output operator for class reference. | |
void | vsl_b_read (vsl_b_istream &bfs, clsfy_classifier_base &b) |
Binary file stream input operator for class reference. | |
double | clsfy_test_error (const clsfy_classifier_base &classifier, mbl_data_wrapper< vnl_vector< double > > &test_inputs, const vcl_vector< unsigned > &test_outputs) |
Calculate the fraction of test samples which are classified incorrectly. | |
double | clsfy_test_error (const clsfy_classifier_base &classifier, mbl_data_wrapper< vnl_vector< double > > &test_inputs, const vcl_vector< unsigned > &test_outputs, unsigned test_class) |
Calculate the fraction of test samples of a particular class which are classified incorrectly. |
Implement bits of an abstract classifier.
Modifications 2 May 2001 IMS Converted to VXL
Definition in file clsfy_classifier_base.cxx.
double clsfy_test_error | ( | const clsfy_classifier_base & | classifier, |
mbl_data_wrapper< vnl_vector< double > > & | test_inputs, | ||
const vcl_vector< unsigned > & | test_outputs | ||
) |
Calculate the fraction of test samples which are classified incorrectly.
Definition at line 126 of file clsfy_classifier_base.cxx.
double clsfy_test_error | ( | const clsfy_classifier_base & | classifier, |
mbl_data_wrapper< vnl_vector< double > > & | test_inputs, | ||
const vcl_vector< unsigned > & | test_outputs, | ||
unsigned | test_class | ||
) |
Calculate the fraction of test samples of a particular class which are classified incorrectly.
Definition at line 145 of file clsfy_classifier_base.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | os, |
clsfy_classifier_base const & | b | ||
) |
Stream output operator for class reference.
Definition at line 84 of file clsfy_classifier_base.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | os, |
const clsfy_classifier_base * | b | ||
) |
Stream output operator for class pointer.
Definition at line 95 of file clsfy_classifier_base.cxx.
void vsl_add_to_binary_loader | ( | const clsfy_classifier_base & | b | ) |
Allows derived class to be loaded by base-class pointer.
Definition at line 105 of file clsfy_classifier_base.cxx.
void vsl_b_read | ( | vsl_b_istream & | bfs, |
clsfy_classifier_base & | b | ||
) |
Binary file stream input operator for class reference.
Definition at line 119 of file clsfy_classifier_base.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
const clsfy_classifier_base & | b | ||
) |
Binary file stream output operator for class reference.
Definition at line 112 of file clsfy_classifier_base.cxx.