Class Selected
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.preparefilebaseddataset.AbstractFileBasedDatasetPreparation<String[][]>
-
- adams.flow.transformer.preparefilebaseddataset.Selected
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,SizeOfHandler,Serializable
public class Selected extends AbstractFileBasedDatasetPreparation<String[][]>
Generates a container from the selected elements of the array.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Indexm_Negativethe index for the negative set.protected Indexm_Testthe index for the test set.protected Indexm_Trainthe index for the training set.protected Indexm_Validationthe index for the validation set.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description Selected()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Classaccepts()Returns the class that the preparation scheme accepts as input.protected Stringcheck(String[][] data)Hook method for checking the data.voiddefineOptions()Adds options to the internal list of options.protected List<FileBasedDatasetContainer>doPrepare(String[][] data)Prepares the data.IndexgetNegative()Returns the index for the negative set.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.IndexgetTest()Returns the index for the test set.IndexgetTrain()Returns the index for the training set.IndexgetValidation()Returns the index for the validation set.StringglobalInfo()Returns a string describing the object.StringnegativeTipText()Returns the tip text for this property.voidsetNegative(Index value)Sets the index for the negative set.voidsetTest(Index value)Sets the index for the test set.voidsetTrain(Index value)Sets the index for the training set.voidsetValidation(Index value)Sets the index for the validation set.StringtestTipText()Returns the tip text for this property.StringtrainTipText()Returns the tip text for this property.StringvalidationTipText()Returns the tip text for this property.-
Methods inherited from class adams.flow.transformer.preparefilebaseddataset.AbstractFileBasedDatasetPreparation
prepare
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setTrain
public void setTrain(Index value)
Sets the index for the training set.- Parameters:
value- the index
-
getTrain
public Index getTrain()
Returns the index for the training set.- Returns:
- the index
-
trainTipText
public String trainTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setTest
public void setTest(Index value)
Sets the index for the test set.- Parameters:
value- the index
-
getTest
public Index getTest()
Returns the index for the test set.- Returns:
- the index
-
testTipText
public String testTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setValidation
public void setValidation(Index value)
Sets the index for the validation set.- Parameters:
value- the index
-
getValidation
public Index getValidation()
Returns the index for the validation set.- Returns:
- the index
-
validationTipText
public String validationTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setNegative
public void setNegative(Index value)
Sets the index for the negative set.- Parameters:
value- the index
-
getNegative
public Index getNegative()
Returns the index for the negative set.- Returns:
- the index
-
negativeTipText
public String negativeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfoin interfaceQuickInfoSupporter- Overrides:
getQuickInfoin classAbstractFileBasedDatasetPreparation<String[][]>- Returns:
- null if no info available, otherwise short string
-
accepts
public Class accepts()
Returns the class that the preparation scheme accepts as input.- Specified by:
acceptsin classAbstractFileBasedDatasetPreparation<String[][]>- Returns:
- the class
-
check
protected String check(String[][] data)
Hook method for checking the data.- Overrides:
checkin classAbstractFileBasedDatasetPreparation<String[][]>- Parameters:
data- the data to check- Returns:
- null if succesful, otherwise error message
-
doPrepare
protected List<FileBasedDatasetContainer> doPrepare(String[][] data)
Prepares the data.- Specified by:
doPreparein classAbstractFileBasedDatasetPreparation<String[][]>- Parameters:
data- the data to use- Returns:
- the generated container
-
-