@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
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
m_additionalOptions
Additional options for the offscreen renderer
|
protected boolean |
m_dataIsThresholdData
True if the collected plots contain threshold data
|
protected java.lang.String |
m_height
Height of offscreen plots
|
protected java.util.List<Instances> |
m_offscreenPlotData
For rendering plots to encapsulate in Image connections
|
protected OffscreenChartRenderer |
m_offscreenRenderer |
protected java.lang.String |
m_offscreenRendererName
Name of the renderer to use for offscreen chart rendering
|
protected java.util.List<PlotData2D> |
m_plots
Current set of plots.
|
protected java.util.List<java.lang.String> |
m_thresholdSeriesTitles |
protected java.lang.String |
m_width
Width of offscreen plots
|
protected java.lang.String |
m_xAxis
The name of the attribute to use for the x-axis of offscreen plots.
|
protected java.lang.String |
m_yAxis
The name of the attribute to use for the y-axis of offscreen plots.
|
m_stepIsResourceIntensive, m_stepManager, m_stepName| Constructor and Description |
|---|
ModelPerformanceChart() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.image.BufferedImage |
addOffscreenErrorPlot(PlotData2D plotData)
Add an error plot to the offscreen plot collection
|
protected java.awt.image.BufferedImage |
addOffscreenThresholdPlot(PlotData2D thresholdD)
Add a threshold plot to the offscreen data collection
|
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.
|
protected void |
setupOffscreenRenderer()
Configures the offscreen renderer to use
|
void |
stepInit()
Initialize the step
|
environmentSubstitute, getDefaultSettings, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stopprotected java.util.List<PlotData2D> m_plots
protected transient java.util.List<Instances> m_offscreenPlotData
protected transient java.util.List<java.lang.String> m_thresholdSeriesTitles
protected transient OffscreenChartRenderer m_offscreenRenderer
protected java.lang.String m_offscreenRendererName
protected java.lang.String m_xAxis
protected java.lang.String m_yAxis
protected java.lang.String m_additionalOptions
protected java.lang.String m_width
protected java.lang.String m_height
protected boolean m_dataIsThresholdData
@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()
protected void setupOffscreenRenderer()
public java.util.List<java.lang.String> getIncomingConnectionTypes()
getIncomingConnectionTypes in interface BaseStepExtendergetIncomingConnectionTypes in interface Steppublic java.util.List<java.lang.String> getOutgoingConnectionTypes()
getOutgoingConnectionTypes in interface BaseStepExtendergetOutgoingConnectionTypes in interface Stepprotected java.awt.image.BufferedImage addOffscreenThresholdPlot(PlotData2D thresholdD) throws WekaException
thresholdD - the plot data to addWekaException - if a problem occursprotected java.awt.image.BufferedImage addOffscreenErrorPlot(PlotData2D plotData) throws WekaException
plotData - the plot to addWekaException - if a problem occurspublic void processIncoming(Data data) throws WekaException
processIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the data to processWekaException - if a problem occurspublic java.util.Map<java.lang.String,java.lang.String> getInteractiveViewers()
getInteractiveViewers in interface StepgetInteractiveViewers in class BaseSteppublic java.util.List<PlotData2D> getPlots()
public boolean isDataIsThresholdData()
public void clearPlotData()
public java.lang.Object retrieveData()
retrieveData in interface DataCollectorpublic void restoreData(java.lang.Object data)
throws WekaException
restoreData in interface DataCollectordata - the data to setWekaException - if a problem occurspublic void stepInit()
throws WekaException
stepInit in interface BaseStepExtenderstepInit in interface StepWekaException - if a problem occurs during initializationpublic java.lang.String getCustomEditorForStep()
getCustomEditorForStep in interface StepgetCustomEditorForStep in class BaseStep