@KFStep(name="ModelPerformanceChart", category="Visualization", toolTipText="Visualize performance charts (such as ROC).", iconPath="weka/gui/knowledgeflow/icons/ModelPerformanceChart.gif") public class ModelPerformanceChart extends BaseStep implements DataCollector
Constructor and Description |
---|
ModelPerformanceChart() |
Modifier and Type | Method and Description |
---|---|
void |
clearPlotData()
Clear all plot data (both onscreen and offscreen)
|
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()
Get the plots currently stored in this step
|
boolean |
isDataIsThresholdData()
Returns true if the plots being stored are threshold plots
|
void |
processIncoming(Data data)
Process incoming data
|
void |
restoreData(java.lang.Object data)
Restore the data (plots) for this step
|
java.lang.Object |
retrieveData()
Retrieve the data (plots) stored in this step
|
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 java.util.List<java.lang.String> getIncomingConnectionTypes()
getIncomingConnectionTypes
in interface BaseStepExtender
getIncomingConnectionTypes
in interface Step
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
getOutgoingConnectionTypes
in interface BaseStepExtender
getOutgoingConnectionTypes
in interface Step
public void processIncoming(Data data) throws WekaException
processIncoming
in interface BaseStepExtender
processIncoming
in interface Step
processIncoming
in class BaseStep
data
- the data to processWekaException
- if a problem occurspublic java.util.Map<java.lang.String,java.lang.String> getInteractiveViewers()
getInteractiveViewers
in interface Step
getInteractiveViewers
in class BaseStep
public java.util.List<PlotData2D> getPlots()
public boolean isDataIsThresholdData()
public void clearPlotData()
public java.lang.Object retrieveData()
retrieveData
in interface DataCollector
public void restoreData(java.lang.Object data) throws WekaException
restoreData
in interface DataCollector
data
- the data to setWekaException
- if a problem occurspublic void stepInit() throws WekaException
stepInit
in interface BaseStepExtender
stepInit
in interface Step
WekaException
- if a problem occurs during initializationpublic java.lang.String getCustomEditorForStep()
getCustomEditorForStep
in interface Step
getCustomEditorForStep
in class BaseStep