|
enum | TrainingMode { CLASSIFICATION_MODE =0,
REGRESSION_MODE
} |
|
|
unsigned int | trainingMode |
|
unsigned int | trainingIteration |
|
Float | accuracy |
|
Float | totalSquaredTrainingError |
|
Float | rootMeanSquaredTrainingError |
|
MLBase * | trainer |
|
Definition at line 17 of file TrainingResult.h.
TrainingResult::TrainingResult |
( |
| ) |
|
|
inline |
Copy Constructor.
Initializes this instance by copying the data from the rhs instance
- Parameters
-
Definition at line 40 of file TrainingResult.h.
TrainingResult::~TrainingResult |
( |
| ) |
|
|
inline |
Float TrainingResult::getAccuracy |
( |
| ) |
const |
|
inline |
Gets the accuracy for the training result at the current training iteration. This is only used if the trainingMode is in CLASSIFICATION_MODE.
- Returns
- returns the accuracy
Definition at line 94 of file TrainingResult.h.
Float TrainingResult::getRootMeanSquaredTrainingError |
( |
| ) |
const |
|
inline |
Gets the root mean squared error for the training data at the current training iteration. This is only used if the trainingMode is in REGRESSION_MODE.
- Returns
- returns the rootMeanSquaredTrainingError
Definition at line 114 of file TrainingResult.h.
Float TrainingResult::getTotalSquaredTrainingError |
( |
| ) |
const |
|
inline |
Gets the total squared error for the training data at the current training iteration. This is only used if the trainingMode is in REGRESSION_MODE.
- Returns
- returns the totalSquaredTrainingError
Definition at line 104 of file TrainingResult.h.
MLBase* TrainingResult::getTrainer |
( |
| ) |
const |
|
inline |
Gets a pointer to the class used for training.
- Returns
- returns a pointer to the trainer
Definition at line 123 of file TrainingResult.h.
unsigned int TrainingResult::getTrainingIteration |
( |
| ) |
const |
|
inline |
Gets the training iteration, this represents which iteration (or epoch) the training results correspond to.
- Returns
- returns the training iteration
Definition at line 84 of file TrainingResult.h.
unsigned int TrainingResult::getTrainingMode |
( |
| ) |
const |
|
inline |
Gets the current training mode, this will be one of the TrainingMode enums.
- Returns
- returns the current training mode, this will be one of the TrainingMode enums
Definition at line 75 of file TrainingResult.h.
Defines the Equals Operator.
This copies the data from the rhs instance to this instance, returning a reference to the current instance.
- Parameters
-
Definition at line 58 of file TrainingResult.h.
bool TrainingResult::setClassificationResult |
( |
unsigned int |
trainingIteration, |
|
|
Float |
accuracy, |
|
|
MLBase * |
trainer |
|
) |
| |
|
inline |
Sets the training result for classification data. This will place the training mode into CLASSIFICATION_MODE.
- Parameters
-
trainingIteration | the current training iteration (or epoch) |
accuracy | the accuracy for the current training iteration |
trainer | a pointer to the class used to generate the result |
- Returns
- returns true if the training result was set successfully
Definition at line 135 of file TrainingResult.h.
bool TrainingResult::setRegressionResult |
( |
unsigned int |
trainingIteration, |
|
|
Float |
totalSquaredTrainingError, |
|
|
Float |
rootMeanSquaredTrainingError, |
|
|
MLBase * |
trainer |
|
) |
| |
|
inline |
Sets the training result for regression data. This will place the training mode into REGRESSION_MODE.
- Parameters
-
trainingIteration | the current training iteration (or epoch) |
totalSquaredTrainingError | the total squared training error for the current iteration |
rootMeanSquaredTrainingError | the root mean squared training error for the current iteration |
trainer | a pointer to the class used to generate the result |
- Returns
- returns true if the training result was set successfully
Definition at line 152 of file TrainingResult.h.
The documentation for this class was generated from the following file: