org.jdmp.core.algorithm.regression
Class AbstractRegressor

java.lang.Object
  extended by org.jdmp.core.AbstractCoreObject
      extended by org.jdmp.core.algorithm.AbstractAlgorithm
          extended by org.jdmp.core.algorithm.regression.AbstractRegressor
All Implemented Interfaces:
Serializable, Cloneable, Algorithm, HasAlgorithmMap, HasAlgorithms, Regressor, CoreObject, HasVariableMap, HasVariables, Clearable, HasDescription, HasGUIObject, HasLabel
Direct Known Subclasses:
AbstractClassifier

public abstract class AbstractRegressor
extends AbstractAlgorithm
implements Regressor

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jdmp.core.algorithm.Algorithm
Algorithm.EdgeDirection
 
Field Summary
 int mode
           
static int OUTPUTERRORALGORITHM
           
static int PREDICT
           
static int TRAIN
           
 
Fields inherited from class org.jdmp.core.AbstractCoreObject
ALL, COLUMN, logger, ROW, X, Y, Z
 
Fields inherited from interface org.jdmp.core.algorithm.regression.Regressor
DIFFERENCE, INPUT, PREDICTED, RMSE, WEIGHT
 
Fields inherited from interface org.jdmp.core.algorithm.Algorithm
ALGORITHMARRAY, DIMENSION, IGNORENAN, SOURCE, TARGET
 
Constructor Summary
AbstractRegressor()
           
AbstractRegressor(boolean evaluate)
           
 
Method Summary
 int getMode()
           
 Algorithm getOutputErrorAlgorithm()
           
 Matrix predict(Matrix input)
           
abstract  Matrix predict(Matrix input, Matrix sampleWeight)
           
 void predict(RegressionDataSet dataSet)
           
 void predict(Sample sample)
           
abstract  void reset()
           
 void setMode(int mode)
           
 void setOutputErrorAlgorithm(Algorithm a)
           
 void train(Matrix input, Matrix targetOutput)
           
abstract  void train(Matrix input, Matrix sampleWeight, Matrix targetOutput)
           
abstract  void train(RegressionDataSet dataSet)
           
 void train(Sample sample)
           
 
Methods inherited from class org.jdmp.core.algorithm.AbstractAlgorithm
addVariableKey, calculate, calculate, calculate, calculate, calculateObjects, calculateObjects, calculateObjects, clear, getAlgorithms, getAsString, getDescription, getEdgeDirection, getEdgeLabel, getGUIObject, getInputKeys, getLabel, getMatrix, getOutputKeys, getVariableKeys, getVariables, notifyGUIObject, setAlgorithm, setDescription, setEdgeDirection, setEdgeLabel, setLabel, setMatrix, setObject, setVariable, setVariables, setVariables, toString
 
Methods inherited from class org.jdmp.core.AbstractCoreObject
showGUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jdmp.core.algorithm.regression.Regressor
emptyCopy
 
Methods inherited from interface org.ujmp.core.interfaces.HasGUIObject
showGUI
 

Field Detail

OUTPUTERRORALGORITHM

public static final int OUTPUTERRORALGORITHM
See Also:
Constant Field Values

TRAIN

public static final int TRAIN
See Also:
Constant Field Values

PREDICT

public static final int PREDICT
See Also:
Constant Field Values

mode

public int mode
Constructor Detail

AbstractRegressor

public AbstractRegressor()

AbstractRegressor

public AbstractRegressor(boolean evaluate)
Method Detail

train

public abstract void train(RegressionDataSet dataSet)
                    throws Exception
Specified by:
train in interface Regressor
Throws:
Exception

reset

public abstract void reset()
                    throws Exception
Specified by:
reset in interface Regressor
Throws:
Exception

train

public abstract void train(Matrix input,
                           Matrix sampleWeight,
                           Matrix targetOutput)
                    throws Exception
Specified by:
train in interface Regressor
Throws:
Exception

predict

public final void predict(Sample sample)
                   throws Exception
Specified by:
predict in interface Regressor
Throws:
Exception

predict

public final Matrix predict(Matrix input)
                     throws Exception
Specified by:
predict in interface Regressor
Throws:
Exception

train

public final void train(Matrix input,
                        Matrix targetOutput)
                 throws Exception
Specified by:
train in interface Regressor
Throws:
Exception

predict

public abstract Matrix predict(Matrix input,
                               Matrix sampleWeight)
                        throws Exception
Specified by:
predict in interface Regressor
Throws:
Exception

train

public final void train(Sample sample)
                 throws Exception
Specified by:
train in interface Regressor
Throws:
Exception

predict

public void predict(RegressionDataSet dataSet)
             throws Exception
Specified by:
predict in interface Regressor
Throws:
Exception

getOutputErrorAlgorithm

public Algorithm getOutputErrorAlgorithm()

setOutputErrorAlgorithm

public void setOutputErrorAlgorithm(Algorithm a)

getMode

public int getMode()

setMode

public void setMode(int mode)


Copyright © 2009. All Rights Reserved.