@KFStep(name="DataVisualizer", category="Visualization", toolTipText="Visualize training/test sets in a 2D scatter plot.", iconPath="weka/gui/knowledgeflow/icons/DefaultDataVisualizer.gif") public class DataVisualizer extends BaseStep implements DataCollector
Constructor and Description |
---|
DataVisualizer() |
Modifier and Type | Method and Description |
---|---|
void |
clearPlotData() |
java.lang.String |
getCustomEditorForStep()
Return the fully qualified name of a custom editor component (JComponent)
to use for editing the properties of the step.
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
java.util.Map<java.lang.String,java.lang.String> |
getInteractiveViewers()
When running in a graphical execution environment a step can make one or
more popup Viewer components available.
|
java.lang.String |
getOffscreenAdditionalOpts()
Get the additional options for the offscreen renderer
|
java.lang.String |
getOffscreenHeight()
Get the height (in pixels) of the offscreen image to generate
|
java.lang.String |
getOffscreenRendererName()
Get the name of the renderer to use for offscreen chart rendering
operations
|
java.lang.String |
getOffscreenWidth()
Get the width (in pixels) of the offscreen image to generate.
|
java.lang.String |
getOffscreenXAxis()
Get the name of the attribute for the x-axis in offscreen plots
|
java.lang.String |
getOffscreenYAxis()
Get the name of the attribute for the y-axix of offscreen plots.
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
java.util.List<PlotData2D> |
getPlots() |
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
restoreData(java.lang.Object data)
Set the data for this collector
|
java.lang.Object |
retrieveData()
Get the data that this collector has collected
|
void |
setOffscreenAdditionalOpts(java.lang.String additional)
Set the additional options for the offscreen renderer
|
void |
setOffscreenHeight(java.lang.String height)
Set the height (in pixels) of the offscreen image to generate
|
void |
setOffscreenRendererName(java.lang.String rendererName)
Set the name of the renderer to use for offscreen chart rendering
operations
|
void |
setOffscreenWidth(java.lang.String width)
Set the width (in pixels) of the offscreen image to generate.
|
void |
setOffscreenXAxis(java.lang.String xAxis)
Set the name of the attribute for the x-axis in offscreen plots.
|
void |
setOffscreenYAxis(java.lang.String yAxis)
Set the name of the attribute for the y-axis in offscreen plots.
|
void |
stepInit()
Initialize the step.
|
environmentSubstitute, getDefaultSettings, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
@OptionMetadata(displayName="X-axis attribute", description="Attribute name or /first, /last or /<index>", displayOrder=1) public void setOffscreenXAxis(java.lang.String xAxis)
xAxis
- the name of the xAxispublic java.lang.String getOffscreenXAxis()
@OptionMetadata(displayName="Y-axis attribute", description="Attribute name or /first, /last or /<index>", displayOrder=2) public void setOffscreenYAxis(java.lang.String yAxis)
yAxis
- the name of the xAxispublic java.lang.String getOffscreenYAxis()
@OptionMetadata(displayName="Chart width (pixels)", description="Width of the rendered chart", displayOrder=3) public void setOffscreenWidth(java.lang.String width)
width
- the width in pixels.public java.lang.String getOffscreenWidth()
@OptionMetadata(displayName="Chart height (pixels)", description="Height of the rendered chart", displayOrder=4) public void setOffscreenHeight(java.lang.String height)
height
- the height in pixelspublic java.lang.String getOffscreenHeight()
@ProgrammaticProperty public void setOffscreenRendererName(java.lang.String rendererName)
rendererName
- the name of the renderer to usepublic java.lang.String getOffscreenRendererName()
@ProgrammaticProperty public void setOffscreenAdditionalOpts(java.lang.String additional)
additional
- additional optionspublic java.lang.String getOffscreenAdditionalOpts()
public void stepInit() throws WekaException
Step
stepInit
in interface BaseStepExtender
stepInit
in interface Step
WekaException
- if a problem occurs during initializationpublic void processIncoming(Data data) throws WekaException
BaseStep
processIncoming
in interface BaseStepExtender
processIncoming
in interface Step
processIncoming
in class BaseStep
data
- the payload to processWekaException
- if a problem occurspublic java.util.List<PlotData2D> getPlots()
public void clearPlotData()
public java.lang.Object retrieveData()
DataCollector
retrieveData
in interface DataCollector
public void restoreData(java.lang.Object data) throws WekaException
DataCollector
restoreData
in interface DataCollector
data
- the data to setWekaException
- if there is a problem restoring datapublic java.util.List<java.lang.String> getIncomingConnectionTypes()
Step
getIncomingConnectionTypes
in interface BaseStepExtender
getIncomingConnectionTypes
in interface Step
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
Step
getOutgoingConnectionTypes
in interface BaseStepExtender
getOutgoingConnectionTypes
in interface Step
public java.lang.String getCustomEditorForStep()
BaseStep
getCustomEditorForStep
in interface Step
getCustomEditorForStep
in class BaseStep
public java.util.Map<java.lang.String,java.lang.String> getInteractiveViewers()
BaseStep
getInteractiveViewers
in interface Step
getInteractiveViewers
in class BaseStep