|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.source.AbstractSource
adams.flow.source.WekaDataGenerator
public class WekaDataGenerator
Generates artificial data using a Weka data generator.
Input/output:weka.core.InstancesValid options are:
-D (property: debug)
If set to true, scheme may output additional info to the console.
-name <java.lang.String> (property: name)
The name of the actor.
default: DataGenerator
-annotation <adams.core.base.BaseString> [-annotation ...] (property: annotations)
The annotations to attach to this actor.
-skip (property: skip)
If set to true, transformation is skipped and the input token is just forwarded
as it is.
-generator <weka.datagenerators.DataGenerator [options]> (property: dataGenerator)
The data generator to use for generating the weka.core.Instances object.
default: weka.datagenerators.classifiers.classification.Agrawal -r weka.datagenerators.classifiers.classification.Agrawal-S_1_-n_100_-F_1_-P_0.05 -S 1 -n 100 -F 1 -P 0.05
Default options for weka.datagenerators.classifiers.classification.Agrawal (-generator/dataGenerator):
See Weka Javadoc
| Field Summary | |
|---|---|
protected weka.datagenerators.DataGenerator |
m_DataGenerator
the filter to apply. |
protected Token |
m_OutputToken
the token to broadcast. |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ, m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
WekaDataGenerator()
|
|
| Method Summary | |
|---|---|
String |
dataGeneratorTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Executes the flow item. |
Class[] |
generates()
Returns the class of objects that it generates. |
weka.datagenerators.DataGenerator |
getDataGenerator()
Returns the data generator in use. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
String |
globalInfo()
Returns a string describing the object. |
boolean |
hasPendingOutput()
Checks whether there is pending output to be collected after executing the flow item. |
Token |
output()
Returns the generated token. |
void |
setDataGenerator(weka.datagenerators.DataGenerator value)
Sets the data generator to use. |
void |
updateProvenance(ProvenanceContainer cont)
Updates the provenance information in the provided container. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.datagenerators.DataGenerator m_DataGenerator
protected transient Token m_OutputToken
| Constructor Detail |
|---|
public WekaDataGenerator()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorpublic String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in class AbstractActorpublic void setDataGenerator(weka.datagenerators.DataGenerator value)
value - the data generatorpublic weka.datagenerators.DataGenerator getDataGenerator()
public String dataGeneratorTipText()
public Class[] generates()
generates in interface OutputProducerpublic Token output()
output in interface OutputProducerpublic boolean hasPendingOutput()
hasPendingOutput in interface OutputProducerprotected String doExecute()
doExecute in class AbstractActorpublic void updateProvenance(ProvenanceContainer cont)
updateProvenance in interface ProvenanceSupportercont - the provenance container to update
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||