#include <Algorithm.h>
Public Member Functions | |
Algorithm () | |
virtual | ~Algorithm () |
REAL | clipValue (REAL input, REAL low, REAL high) |
virtual double | calcRMSEonProbe ()=0 |
virtual double | calcRMSEonBlend ()=0 |
virtual double | train ()=0 |
virtual void | setPredictionMode (int cross)=0 |
virtual void | predictMultipleOutputs (REAL *rawInput, REAL *effect, REAL *output, int *label, int nSamples, int crossRun)=0 |
Public Attributes | |
bool | m_inRetraining |
Friends | |
class | BlendStopping |
Definition at line 30 of file Algorithm.h.
Algorithm::Algorithm | ( | ) |
Constructor
Definition at line 8 of file Algorithm.cpp.
00009 { 00010 cout<<"Algorithm"<<endl; 00011 m_inRetraining = false; 00012 m_enableBagging = false; 00013 }
Algorithm::~Algorithm | ( | ) | [virtual] |
REAL Algorithm::clipValue | ( | REAL | input, | |
REAL | low, | |||
REAL | high | |||
) |
Clip a value with low/high bounds
input | The input value for clipping | |
low | The lower bound | |
high | The higher bound |
Definition at line 32 of file Algorithm.cpp.
00033 { 00034 if ( input < low ) 00035 input = low; 00036 if ( input > high ) 00037 input = high; 00038 return input; 00039 }