Class AbstractInstancesIndexedSplitsRunsGenerator
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator
-
- adams.flow.transformer.indexedsplitsrunsgenerator.AbstractInstancesIndexedSplitsRunsGenerator
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.SizeOfHandler,adams.flow.core.FlowContextHandler,adams.flow.transformer.indexedsplitsrunsgenerator.IndexedSplitsRunsGenerator,InstancesIndexedSplitsRunsGenerator,Serializable
- Direct Known Subclasses:
InstancesCrossValidationFoldGenerator,InstancesGroupedCrossValidationFoldGenerator,InstancesGroupedRandomSplitGenerator,InstancesRandomSplitGenerator
public abstract class AbstractInstancesIndexedSplitsRunsGenerator extends adams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator implements InstancesIndexedSplitsRunsGenerator
Ancestor for generators that process Instances objects.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_AddAttributeInformationwhether to added attribute information to the meta-data as well.protected booleanm_AddDatasetInformationwhether to added basic dataset information to the meta-data as well.-
Fields inherited from class adams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator
m_FlowContext, m_MetaData
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from interface adams.flow.transformer.indexedsplitsrunsgenerator.InstancesIndexedSplitsRunsGenerator
DATASET_NAME, DATASET_NUMATTRIBUTES, DATASET_NUMINSTANCES, PREFIX_DATASET_ATTRIBUTE, SUFFIX_NAME, SUFFIX_TYPE
-
-
Constructor Summary
Constructors Constructor Description AbstractInstancesIndexedSplitsRunsGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]accepts()Returns the type of classes that are accepted as input.StringaddAttributeInformationTipText()Returns the tip text for this property.StringaddDatasetInformationTipText()Returns the tip text for this property.voiddefineOptions()Adds options to the internal list of options.booleangetAddAttributeInformation()Returns whether to add attribute information to the metadata.booleangetAddDatasetInformation()Returns whether to add dataset information to the metadata.StringgetQuickInfo()Returns a quick info about the actor, which will be displayed in the GUI.protected adams.data.indexedsplits.IndexedSplitsRunspostGenerate(Object data, adams.data.indexedsplits.IndexedSplitsRuns runs, adams.core.MessageCollection errors)For post-processing successfully generated splits.voidsetAddAttributeInformation(boolean value)Sets whether to add attribute information to the metadata.voidsetAddDatasetInformation(boolean value)Sets whether to add dataset information to the metadata.-
Methods inherited from class adams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator
check, doGenerate, generate, getFlowContext, getMetaData, metaDataTipText, setFlowContext, setMetaData
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, 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
-
-
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator
-
setAddDatasetInformation
public void setAddDatasetInformation(boolean value)
Sets whether to add dataset information to the metadata.- Parameters:
value- true if to add
-
getAddDatasetInformation
public boolean getAddDatasetInformation()
Returns whether to add dataset information to the metadata.- Returns:
- true if to add
-
addDatasetInformationTipText
public String addDatasetInformationTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setAddAttributeInformation
public void setAddAttributeInformation(boolean value)
Sets whether to add attribute information to the metadata.- Parameters:
value- true if to add
-
getAddAttributeInformation
public boolean getAddAttributeInformation()
Returns whether to add attribute information to the metadata.- Returns:
- true if to add
-
addAttributeInformationTipText
public String addAttributeInformationTipText()
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 actor, which will be displayed in the GUI.- Specified by:
getQuickInfoin interfaceadams.core.QuickInfoSupporter- Overrides:
getQuickInfoin classadams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator- Returns:
- null if no info available, otherwise short string
-
accepts
public Class[] accepts()
Returns the type of classes that are accepted as input.- Specified by:
acceptsin interfaceadams.flow.transformer.indexedsplitsrunsgenerator.IndexedSplitsRunsGenerator- Specified by:
acceptsin classadams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator- Returns:
- the classes
-
postGenerate
protected adams.data.indexedsplits.IndexedSplitsRuns postGenerate(Object data, adams.data.indexedsplits.IndexedSplitsRuns runs, adams.core.MessageCollection errors)
For post-processing successfully generated splits.- Overrides:
postGeneratein classadams.flow.transformer.indexedsplitsrunsgenerator.AbstractIndexedSplitsRunsGenerator- Parameters:
data- the input dataruns- the generated runserrors- for storing errors- Returns:
- the runs, null if failed to post-process
-
-