org.jdmp.core.algorithm.regression
Class LinearRegression
java.lang.Object
org.jdmp.core.AbstractCoreObject
org.jdmp.core.algorithm.AbstractAlgorithm
org.jdmp.core.algorithm.regression.AbstractRegressor
org.jdmp.core.algorithm.classification.AbstractClassifier
org.jdmp.core.algorithm.regression.LinearRegression
- All Implemented Interfaces:
- Serializable, Cloneable, Algorithm, Classifier, HasAlgorithmMap, HasAlgorithms, Regressor, CoreObject, HasVariableMap, HasVariables, Clearable, HasDescription, HasGUIObject, HasLabel
public class LinearRegression
- extends AbstractClassifier
AlgorithmLinearRegression extends AlgorithmClassifier and not
AlgorithmRegression because also classification is possible using regression
- See Also:
- Serialized Form
| 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 |
PARAMETERS
public static final int PARAMETERS
- See Also:
- Constant Field Values
LinearRegression
public LinearRegression()
setParameterVariable
public void setParameterVariable(Variable variable)
getParameterVariable
public Variable getParameterVariable()
getParameterMatrix
public Matrix getParameterMatrix()
predict
public Matrix predict(Matrix input,
Matrix sampleWeight)
throws Exception
- Specified by:
predict in interface Regressor- Specified by:
predict in class AbstractRegressor
- Throws:
Exception
train
public void train(Matrix input,
Matrix sampleWeight,
Matrix targetOutput)
throws Exception
- Specified by:
train in interface Regressor- Specified by:
train in class AbstractRegressor
- Throws:
Exception
train
public void train(RegressionDataSet dataSet)
throws Exception
- Specified by:
train in interface Regressor- Specified by:
train in class AbstractRegressor
- Throws:
Exception
setParameterMatrix
public void setParameterMatrix(Matrix parameters)
reset
public void reset()
throws MatrixException
- Specified by:
reset in interface Regressor- Specified by:
reset in class AbstractRegressor
- Throws:
MatrixException
emptyCopy
public Classifier emptyCopy()
Copyright © 2009. All Rights Reserved.