Definition at line 40 of file WeakClassifier.h.
WeakClassifier::WeakClassifier |
( |
| ) |
|
WeakClassifier::~WeakClassifier |
( |
| ) |
|
|
virtual |
Copy Constructor. Defines how the data from the rhs instance are copied to this instance.
- Parameters
-
rhs | the rhs instance from which the data will be copied to this instance |
Definition at line 57 of file WeakClassifier.h.
bool WeakClassifier::copyBaseVariables |
( |
const WeakClassifier * |
weakClassifer | ) |
|
This function copies the WeakClassifier base variables from the weakClassifer pointer to this instance.
- Parameters
-
weakClassifer | the instance from which the data will be copied to this instance |
- Returns
- returns true if the base variables were copied, false otherwise
Definition at line 71 of file WeakClassifier.cpp.
WeakClassifier * WeakClassifier::createInstanceFromString |
( |
std::string const & |
weakClassifierType | ) |
|
|
static |
virtual bool WeakClassifier::deepCopyFrom |
( |
const WeakClassifier * |
weakClassifer | ) |
|
|
inlinevirtual |
This function performs a deep copy of the inherited classes variables from the weakClassifer pointer instance to this instance. This function should be overwritten in the inheriting class.
- Parameters
-
const | WeakClassifier *weakClassifer: the instance from which the data will be deep copied to this instance |
- Returns
- returns true if the deep copy was successful, false otherwise
Reimplemented in RadialBasisFunction, and DecisionStump.
Definition at line 84 of file WeakClassifier.h.
virtual Float WeakClassifier::getNegativeClassLabel |
( |
| ) |
const |
|
inlinevirtual |
UINT WeakClassifier::getNumInputDimensions |
( |
| ) |
const |
|
inline |
virtual Float WeakClassifier::getPositiveClassLabel |
( |
| ) |
const |
|
inlinevirtual |
bool WeakClassifier::getTrained |
( |
| ) |
const |
|
inline |
std::string WeakClassifier::getWeakClassifierType |
( |
| ) |
const |
|
inline |
virtual bool WeakClassifier::loadModelFromFile |
( |
std::fstream & |
file | ) |
|
|
inlinevirtual |
This function can be used to load the WeakClassifier model and settings. This function should be overwritten in the inheriting class.
- Parameters
-
file | a reference to the file that the model will be saved to |
- Returns
- returns true if the data was loaded, false otherwise
Reimplemented in RadialBasisFunction, and DecisionStump.
Definition at line 127 of file WeakClassifier.h.
Equals Operator. Defines how the data from the rhs instance are copied to this instance.
- Parameters
-
rhs | the rhs instance from which the data will be copied to this instance |
- Returns
- returns a reference to this WeakClassifier instance
Definition at line 59 of file WeakClassifier.cpp.
virtual Float WeakClassifier::predict |
( |
const VectorFloat & |
x | ) |
|
|
inlinevirtual |
This function is the main predict interface for all the WeakClassifiers. This function should be overwritten in the inheriting class.
- Parameters
-
x | the input vector to be classified, should have the same dimensionality as the data used to train the model |
- Returns
- returns a Float value representing the prediction, which is normally -1 or +1
Reimplemented in RadialBasisFunction, and DecisionStump.
Definition at line 107 of file WeakClassifier.h.
virtual void WeakClassifier::print |
( |
| ) |
const |
|
inlinevirtual |
virtual bool WeakClassifier::saveModelToFile |
( |
std::fstream & |
file | ) |
const |
|
inlinevirtual |
This function can be used to save the WeakClassifier model and settings. This function should be overwritten in the inheriting class.
- Parameters
-
file | a reference to the file that the model will be saved to |
- Returns
- returns true if the data was saved, false otherwise
Reimplemented in RadialBasisFunction, and DecisionStump.
Definition at line 118 of file WeakClassifier.h.
This function is the main training interface for all the WeakClassifiers. This function should be overwritten in the inheriting class.
- Parameters
-
trainingData | a reference to the training data that will be used to train the weak classifier model |
weights | the weight for each training sample, there should be as many weights as there are training samples |
- Returns
- returns true if the weak classifier model was trained successful, false otherwise
Reimplemented in RadialBasisFunction, and DecisionStump.
Definition at line 96 of file WeakClassifier.h.
The documentation for this class was generated from the following files: