|
||||||||||
| 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.transformer.AbstractTransformer
adams.flow.transformer.WekaInstanceEvaluator
public class WekaInstanceEvaluator
Adds a new attribute to the data being passed through (normally 'evaluation') and sets the value to the evaluation value returned by the chosen evaluator scheme.
Input/output:-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: InstanceEvaluator
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-evaluator <adams.data.weka.evaluator.AbstractInstanceEvaluator [options]> (property: evaluator) The evaluator to use. default: adams.data.weka.evaluator.PassThrough
-instances <java.lang.String> (property: instancesActor) The name of the global actor from which to retrieve Instances in case of adams.data.weka.evaluator.AbstractDatasetInstanceEvaluator-derived classes, default:Default options for adams.data.weka.evaluator.PassThrough (-evaluator/evaluator):
-D (property: debug) If set to true, scheme may output additional info to the console.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_NAME
the default name of the attribute with the evaluation value. |
protected String |
m_AttributeName
the attribute name of the evaluation object. |
protected AbstractInstanceEvaluator |
m_Evaluator
the evaluator to use. |
protected weka.filters.unsupervised.attribute.Add |
m_Filter
the filter that is used for generating the new data format. |
protected GlobalSource |
m_GlobalSource
the global actor to use. |
protected weka.core.Instances |
m_Header
the new header. |
protected GlobalActorReference |
m_InstancesActor
the global actor to get the Instances from in case of AbstractDatasetInstanceEvaluator. |
| Fields inherited from class adams.flow.transformer.AbstractTransformer |
|---|
BACKUP_INPUT, BACKUP_OUTPUT, m_InputToken, m_OutputToken |
| 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 | |
|---|---|
WekaInstanceEvaluator()
|
|
| Method Summary | |
|---|---|
Class[] |
accepts()
Returns the class that the consumer accepts. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
determineAttributeName(weka.core.Instances data)
Determines the name of the evaluation attribute. |
protected String |
doExecute()
Executes the flow item. |
String |
evaluatorTipText()
Returns the tip text for this property. |
protected String |
generateHeader(weka.core.Instance inst)
Generates the new header for the data. |
Class[] |
generates()
Returns the class of objects that it generates. |
AbstractInstanceEvaluator |
getEvaluator()
Returns the evaluator to use. |
GlobalActorReference |
getInstancesActor()
Returns the global actor from which to retrieve Instances in case of AbstractDatasetInstanceEvaluator-derived evaluators. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
String |
globalInfo()
Returns a string describing the object. |
String |
instancesActorTipText()
Returns the tip text for this property. |
protected void |
reset()
Resets the actor. |
void |
setEvaluator(AbstractInstanceEvaluator value)
Sets the evaluator to use. |
void |
setInstancesActor(GlobalActorReference value)
Sets the global actor from which to retrieve Instances in case of AbstractDatasetInstanceEvaluator-derived evaluators. |
String |
setUp()
Initializes the item for flow execution. |
protected String |
setUpEvaluator()
Initializes the evaluator. |
void |
wrapUp()
Cleans up after the execution has finished. |
| Methods inherited from class adams.flow.transformer.AbstractTransformer |
|---|
backupState, execute, hasPendingOutput, input, output, postExecute, restoreState |
| 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 |
|---|
public static final String ATTRIBUTE_NAME
protected AbstractInstanceEvaluator m_Evaluator
protected GlobalActorReference m_InstancesActor
protected weka.core.Instances m_Header
protected String m_AttributeName
protected GlobalSource m_GlobalSource
protected weka.filters.unsupervised.attribute.Add m_Filter
| Constructor Detail |
|---|
public WekaInstanceEvaluator()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorprotected void reset()
reset in class AbstractTransformerpublic String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in class AbstractActorpublic void setEvaluator(AbstractInstanceEvaluator value)
value - the evaluatorpublic AbstractInstanceEvaluator getEvaluator()
public String evaluatorTipText()
public void setInstancesActor(GlobalActorReference value)
value - the name of the actorpublic GlobalActorReference getInstancesActor()
public String instancesActorTipText()
public Class[] accepts()
public Class[] generates()
public String setUp()
setUp in class AbstractActorprotected String determineAttributeName(weka.core.Instances data)
data - the original input data
m_AttributeNameprotected String setUpEvaluator()
m_Evaluatorprotected String generateHeader(weka.core.Instance inst)
inst - the instance to get the original data format from
m_Header,
m_Filterprotected String doExecute()
doExecute in class AbstractActorpublic void wrapUp()
wrapUp in class AbstractTransformer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||