Algorithm Class Reference

#include <Algorithm.h>

Inheritance diagram for Algorithm:

Framework Data Framework Autoencoder StandardAlgorithm GBDT KernelRidgeRegression KNearestNeighbor LinearModel LinearModelNonNeg LogisticRegression NeuralNetwork NeuralNetworkRBMauto PolynomialRegression

List of all members.

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


Detailed Description

This is the base class for all algorithms Data is filled externally with the setDataPointers method from a Data* object An algorithm needs to implement the virtual methods

Definition at line 30 of file Algorithm.h.


Constructor & Destructor Documentation

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]

Desstructor

Definition at line 18 of file Algorithm.cpp.

00019 {
00020     cout<<"descructor Algorithm"<<endl;
00021 }


Member Function Documentation

REAL Algorithm::clipValue ( REAL  input,
REAL  low,
REAL  high 
)

Clip a value with low/high bounds

Parameters:
input The input value for clipping
low The lower bound
high The higher bound
Returns:
The clipped value

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 }


The documentation for this class was generated from the following files:

Generated on Tue Jan 26 09:20:59 2010 for ELF by  doxygen 1.5.8