org.jdmp.core.dataset
Class ClassificationDataSet

java.lang.Object
  extended by org.jdmp.core.AbstractCoreObject
      extended by org.jdmp.core.dataset.AbstractDataSet
          extended by org.jdmp.core.dataset.DefaultDataSet
              extended by org.jdmp.core.dataset.RegressionDataSet
                  extended by org.jdmp.core.dataset.ClassificationDataSet
All Implemented Interfaces:
Serializable, Cloneable, CoreObject, DataSet, HasDataSetList, HasDataSets, HasSampleList, HasSamples, HasVariableMap, HasVariables, Clearable, HasDescription, HasGUIObject, HasLabel

public class ClassificationDataSet
extends RegressionDataSet

See Also:
Serialized Form

Field Summary
static String ACCURACY
           
static String CONFUSION
           
static String ERRORCOUNT
           
 
Fields inherited from class org.jdmp.core.dataset.RegressionDataSet
PREDICTED, RMSE, TARGET
 
Fields inherited from class org.jdmp.core.dataset.DefaultDataSet
INPUT
 
Fields inherited from class org.jdmp.core.AbstractCoreObject
ALL, COLUMN, logger, ROW, X, Y, Z
 
Fields inherited from interface org.jdmp.core.dataset.DataSet
DESCRIPTION, LABEL
 
Constructor Summary
ClassificationDataSet()
           
 
Method Summary
 void appendAccuracyMatrix(Matrix m)
           
 void appendConfusionMatrix(Matrix m)
           
 void appendErrorCountMatrix(Matrix m)
           
 ClassificationDataSet bootstrap(int numberOfSamples)
           
 ClassificationDataSet clone()
           
 double getAccuracy()
           
 Variable getAccuracyVariable()
           
 int getClassCount()
           
 Matrix getClassDistribution()
           
 Variable getConfusionVariable()
           
 double getEarlyStoppingAccuracy(int numberOfSteps)
           
 double getEarlyStoppingErrorCount(int numberOfSteps)
           
 int getErrorCount()
           
 Variable getErrorCountVariable()
           
 double getMaxAccuracy()
           
 List<ClassificationDataSet> splitByClass()
           
 List<ClassificationDataSet> splitForStratifiedCV(int numberOfCVSets, int idOfCVSet, long randomSeed)
           
 
Methods inherited from class org.jdmp.core.dataset.RegressionDataSet
appendRMSEMatrix, getEarlyStoppingIndex, getEarlyStoppingRMSE, getPredictedMatrix, getPredictedVariable, getRMSE, getRMSEMatrix, getRMSEVariable, getTargetMatrix, getTargetVariable, isEarlyStoppingReached
 
Methods inherited from class org.jdmp.core.dataset.DefaultDataSet
addMissingValues, center, getFeatureCount, getInputMatrix, getInputVariable, standardize
 
Methods inherited from class org.jdmp.core.dataset.AbstractDataSet
clear, getAsString, getDataSets, getDescription, getGUIObject, getLabel, getMatrix, getSamples, getString, getVariables, notifyGUIObject, setDescription, setLabel, setMatrix, setObject, setSamples, setVariables, splitByCount, splitByPercent, splitForCV, toString
 
Methods inherited from class org.jdmp.core.AbstractCoreObject
showGUI
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujmp.core.interfaces.HasGUIObject
showGUI
 

Field Detail

ACCURACY

public static final String ACCURACY
See Also:
Constant Field Values

CONFUSION

public static final String CONFUSION
See Also:
Constant Field Values

ERRORCOUNT

public static final String ERRORCOUNT
See Also:
Constant Field Values
Constructor Detail

ClassificationDataSet

public ClassificationDataSet()
Method Detail

getClassDistribution

public Matrix getClassDistribution()

getEarlyStoppingErrorCount

public double getEarlyStoppingErrorCount(int numberOfSteps)

clone

public ClassificationDataSet clone()
Specified by:
clone in interface DataSet
Overrides:
clone in class DefaultDataSet

getClassCount

public int getClassCount()

getConfusionVariable

public Variable getConfusionVariable()

getErrorCountVariable

public Variable getErrorCountVariable()

getErrorCount

public int getErrorCount()
                  throws MatrixException
Throws:
MatrixException

getAccuracyVariable

public Variable getAccuracyVariable()

appendConfusionMatrix

public void appendConfusionMatrix(Matrix m)

appendAccuracyMatrix

public void appendAccuracyMatrix(Matrix m)

appendErrorCountMatrix

public void appendErrorCountMatrix(Matrix m)

getAccuracy

public double getAccuracy()
                   throws MatrixException
Throws:
MatrixException

getMaxAccuracy

public double getMaxAccuracy()
                      throws MatrixException
Throws:
MatrixException

splitByClass

public List<ClassificationDataSet> splitByClass()

splitForStratifiedCV

public List<ClassificationDataSet> splitForStratifiedCV(int numberOfCVSets,
                                                        int idOfCVSet,
                                                        long randomSeed)

getEarlyStoppingAccuracy

public double getEarlyStoppingAccuracy(int numberOfSteps)

bootstrap

public ClassificationDataSet bootstrap(int numberOfSamples)


Copyright © 2009. All Rights Reserved.