@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() |
String |
getCustomEditorForStep()
Return the fully qualified name of a custom editor component (JComponent)
to use for editing the properties of the step.
|
List<String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
Map<String,String> |
getInteractiveViewers()
When running in a graphical execution environment a step can make one or
more popup Viewer components available.
|
String |
getOffscreenAdditionalOpts()
Get the additional options for the offscreen renderer
|
String |
getOffscreenHeight()
Get the height (in pixels) of the offscreen image to generate
|
String |
getOffscreenRendererName()
Get the name of the renderer to use for offscreen chart rendering
operations
|
String |
getOffscreenWidth()
Get the width (in pixels) of the offscreen image to generate.
|
String |
getOffscreenXAxis()
Get the name of the attribute for the x-axis in offscreen plots
|
String |
getOffscreenYAxis()
Get the name of the attribute for the y-axix of offscreen plots.
|
List<String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
List<PlotData2D> |
getPlots() |
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
restoreData(Object data)
Set the data for this collector
|
Object |
retrieveData()
Get the data that this collector has collected
|
void |
setOffscreenAdditionalOpts(String additional)
Set the additional options for the offscreen renderer
|
void |
setOffscreenHeight(String height)
Set the height (in pixels) of the offscreen image to generate
|
void |
setOffscreenRendererName(String rendererName)
Set the name of the renderer to use for offscreen chart rendering
operations
|
void |
setOffscreenWidth(String width)
Set the width (in pixels) of the offscreen image to generate.
|
void |
setOffscreenXAxis(String xAxis)
Set the name of the attribute for the x-axis in offscreen plots.
|
void |
setOffscreenYAxis(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, setName, setStepIsResourceIntensive, setStepManager, start, stop@OptionMetadata(displayName="X-axis attribute", description="Attribute name or /first, /last or /<index>", displayOrder=1) public void setOffscreenXAxis(String xAxis)
xAxis - the name of the xAxispublic String getOffscreenXAxis()
@OptionMetadata(displayName="Y-axis attribute", description="Attribute name or /first, /last or /<index>", displayOrder=2) public void setOffscreenYAxis(String yAxis)
yAxis - the name of the xAxispublic String getOffscreenYAxis()
@OptionMetadata(displayName="Chart width (pixels)", description="Width of the rendered chart", displayOrder=3) public void setOffscreenWidth(String width)
width - the width in pixels.public String getOffscreenWidth()
@OptionMetadata(displayName="Chart height (pixels)", description="Height of the rendered chart", displayOrder=4) public void setOffscreenHeight(String height)
height - the height in pixelspublic String getOffscreenHeight()
@ProgrammaticProperty public void setOffscreenRendererName(String rendererName)
rendererName - the name of the renderer to usepublic String getOffscreenRendererName()
@ProgrammaticProperty public void setOffscreenAdditionalOpts(String additional)
additional - additional optionspublic String getOffscreenAdditionalOpts()
public void stepInit()
throws WekaException
StepstepInit in interface BaseStepExtenderstepInit in interface StepWekaException - if a problem occurs during initializationpublic void processIncoming(Data data) throws WekaException
BaseStepprocessIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the payload to processWekaException - if a problem occurspublic List<PlotData2D> getPlots()
public void clearPlotData()
public Object retrieveData()
DataCollectorretrieveData in interface DataCollectorpublic void restoreData(Object data) throws WekaException
DataCollectorrestoreData in interface DataCollectordata - the data to setWekaException - if there is a problem restoring datapublic List<String> getIncomingConnectionTypes()
StepgetIncomingConnectionTypes in interface BaseStepExtendergetIncomingConnectionTypes in interface Steppublic List<String> getOutgoingConnectionTypes()
StepgetOutgoingConnectionTypes in interface BaseStepExtendergetOutgoingConnectionTypes in interface Steppublic String getCustomEditorForStep()
BaseStepgetCustomEditorForStep in interface StepgetCustomEditorForStep in class BaseSteppublic Map<String,String> getInteractiveViewers()
BaseStepgetInteractiveViewers in interface StepgetInteractiveViewers in class BaseStepCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.