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.regression.LinearRegression
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Algorithm, HasAlgorithmMap, Regressor, HasDataSetMap, HasVariableMap, Clearable, CoreObject, HasDescription, HasGUIObject, HasId, HasLabel
- Direct Known Subclasses:
- LogisticRegression
public class LinearRegression extends AbstractRegressor
AlgorithmLinearRegression extends AlgorithmClassifier and not AlgorithmRegression because also classification is possible using regression- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jdmp.core.algorithm.Algorithm
Algorithm.EdgeDirection
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringPARAMETERS-
Fields inherited from class org.jdmp.core.algorithm.regression.AbstractRegressor
mode, OUTPUTERRORALGORITHM, PREDICT, TRAIN
-
Fields inherited from interface org.jdmp.core.algorithm.Algorithm
ALGORITHMARRAY, COMPRESSED, DECOMPRESSED, DIFFERENCE, DIMENSION, HASH, IGNORENAN, INPUT, PREDICTED, RMSE, SOURCE, TARGET, WEIGHT
-
Fields inherited from interface org.ujmp.core.interfaces.HasDescription
DESCRIPTION
-
-
Constructor Summary
Constructors Constructor and Description LinearRegression()LinearRegression(int numberOfPrincipalComponents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RegressoremptyCopy()MatrixgetParameterMatrix()VariablegetParameterVariable()MatrixpredictOne(Matrix input)voidreset()voidsetParameterMatrix(Matrix parameters)voidsetParameterVariable(Variable variable)voidtrainAll(ListDataSet dataSet)-
Methods inherited from class org.jdmp.core.algorithm.regression.AbstractRegressor
getClassCount, getFeatureCount, getInputLabel, getMode, getOutputErrorAlgorithm, getTargetLabel, getWeightLabel, isDiscrete, predictAll, predictOne, setInputLabel, setMode, setOutputErrorAlgorithm, setTargetLabel, setWeightLabel, trainOne, trainOne, trainOne
-
Methods inherited from class org.jdmp.core.algorithm.AbstractAlgorithm
addVariableKey, calculate, calculate, calculate, calculate, calculateObjects, calculateObjects, calculateObjects, clear, getAlgorithmMap, getDataSetMap, getDescription, getEdgeDirection, getEdgeLabel, getId, getInputKeys, getLabel, getLabelObject, getOutputKeys, getVariableKeys, getVariableMap, setAlgorithm, setDescription, setEdgeDirection, setEdgeLabel, setId, setLabel, setVariable, setVariables, toString
-
Methods inherited from class org.jdmp.core.AbstractCoreObject
clone, fireValueChanged, getCoreObjectId, getGUIObject, showGUI
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ujmp.core.interfaces.CoreObject
clone, getCoreObjectId
-
Methods inherited from interface org.ujmp.core.interfaces.HasGUIObject
fireValueChanged, getGUIObject, showGUI
-
-
-
-
Field Detail
-
PARAMETERS
public static final java.lang.String PARAMETERS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LinearRegression
public LinearRegression()
-
LinearRegression
public LinearRegression(int numberOfPrincipalComponents)
-
-
Method Detail
-
setParameterVariable
public void setParameterVariable(Variable variable)
-
getParameterVariable
public Variable getParameterVariable()
-
getParameterMatrix
public Matrix getParameterMatrix()
-
trainAll
public void trainAll(ListDataSet dataSet)
-
setParameterMatrix
public void setParameterMatrix(Matrix parameters)
-
reset
public void reset()
-
emptyCopy
public Regressor emptyCopy()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG