org.jdmp.core.algorithm.regression
Class AbstractRegressor
- java.lang.Object
-
- org.jdmp.core.AbstractCoreObject
-
- org.jdmp.core.algorithm.AbstractAlgorithm
-
- org.jdmp.core.algorithm.regression.AbstractRegressor
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Algorithm, HasAlgorithmMap, Regressor, HasDataSetMap, HasVariableMap, Clearable, CoreObject, HasDescription, HasGUIObject, HasId, HasLabel
- Direct Known Subclasses:
- AbstractClassifier, Bagging, FeatureSelector, KNNClassifier, LinearRegression, SemiSupervisedEM
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
Fields Modifier and Type Field and Description intmodestatic java.lang.StringOUTPUTERRORALGORITHMstatic intPREDICTstatic intTRAIN-
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 AbstractRegressor()AbstractRegressor(java.lang.String inputLabel)AbstractRegressor(java.lang.String inputLabel, java.lang.String targetLabel)AbstractRegressor(java.lang.String inputLabel, java.lang.String targetLabel, java.lang.String weightLabel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetClassCount(ListDataSet dataSet)intgetFeatureCount(ListDataSet dataSet)java.lang.StringgetInputLabel()intgetMode()AlgorithmgetOutputErrorAlgorithm()java.lang.StringgetTargetLabel()java.lang.StringgetWeightLabel()booleanisDiscrete(ListDataSet dataSet)voidpredictAll(ListDataSet dataSet)voidpredictOne(Sample sample)voidsetInputLabel(java.lang.String inputLabel)voidsetMode(int mode)voidsetOutputErrorAlgorithm(Algorithm a)voidsetTargetLabel(java.lang.String targetLabel)voidsetWeightLabel(java.lang.String weightLabel)voidtrainOne(Matrix input, Matrix targetOutput)voidtrainOne(Matrix input, Matrix sampleWeight, Matrix targetOutput)voidtrainOne(Sample sample)-
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.jdmp.core.algorithm.regression.Regressor
emptyCopy, predictOne, reset, trainAll
-
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
-
OUTPUTERRORALGORITHM
public static final java.lang.String 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(java.lang.String inputLabel, java.lang.String targetLabel, java.lang.String weightLabel)
-
AbstractRegressor
public AbstractRegressor(java.lang.String inputLabel, java.lang.String targetLabel)
-
AbstractRegressor
public AbstractRegressor(java.lang.String inputLabel)
-
AbstractRegressor
public AbstractRegressor()
-
-
Method Detail
-
getClassCount
public int getClassCount(ListDataSet dataSet)
- Specified by:
getClassCountin interfaceRegressor
-
isDiscrete
public boolean isDiscrete(ListDataSet dataSet)
- Specified by:
isDiscretein interfaceRegressor
-
getFeatureCount
public int getFeatureCount(ListDataSet dataSet)
- Specified by:
getFeatureCountin interfaceRegressor
-
getInputLabel
public java.lang.String getInputLabel()
- Specified by:
getInputLabelin interfaceRegressor
-
getWeightLabel
public java.lang.String getWeightLabel()
-
setWeightLabel
public void setWeightLabel(java.lang.String weightLabel)
-
setInputLabel
public void setInputLabel(java.lang.String inputLabel)
-
getTargetLabel
public java.lang.String getTargetLabel()
- Specified by:
getTargetLabelin interfaceRegressor
-
setTargetLabel
public void setTargetLabel(java.lang.String targetLabel)
-
predictOne
public final void predictOne(Sample sample)
- Specified by:
predictOnein interfaceRegressor
-
predictAll
public void predictAll(ListDataSet dataSet)
- Specified by:
predictAllin interfaceRegressor
-
getOutputErrorAlgorithm
public Algorithm getOutputErrorAlgorithm()
-
setOutputErrorAlgorithm
public void setOutputErrorAlgorithm(Algorithm a)
-
getMode
public int getMode()
-
setMode
public void setMode(int mode)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG