Package weka.gui.boundaryvisualizer
Class RemoteBoundaryVisualizerSubTask
java.lang.Object
weka.gui.boundaryvisualizer.RemoteBoundaryVisualizerSubTask
- All Implemented Interfaces:
Serializable,Task
Class that encapsulates a sub task for distributed boundary visualization.
Produces probability distributions for each pixel in one row of the
visualization.
- Since:
- 1.0
- Version:
- $Revision: 10222 $
- Author:
- Mark Hall
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Perform the sub taskReturn status information for this sub taskvoidSet the classifier to usevoidSet the density estimator to usevoidsetGeneratorSamplesBase(double ksb) Set the base for computing the number of samples to obtain from each generator.voidSet the training datavoidsetMinMaxX(double minx, double maxx) Set the minimum and maximum values of the x axis fixed dimensionvoidsetMinMaxY(double miny, double maxy) Set the minimum and maximum values of the y axis fixed dimensionvoidsetNumSamplesPerRegion(int num) Set the number of points to uniformly sample from a region (fixed dimensions).voidsetPanelHeight(int ph) Set the height of the visualizationvoidsetPanelWidth(int pw) Set the width of the visualizationvoidsetPixHeight(double ph) Set the height of a pixelvoidsetPixWidth(double pw) Set the width of a pixelvoidsetRowNumber(int rn) Set the row number for this sub taskvoidsetXAttribute(int xatt) Set the x axis fixed dimensionvoidsetYAttribute(int yatt) Set the y axis fixed dimension
-
Constructor Details
-
RemoteBoundaryVisualizerSubTask
public RemoteBoundaryVisualizerSubTask()
-
-
Method Details
-
setRowNumber
public void setRowNumber(int rn) Set the row number for this sub task- Parameters:
rn- the row number
-
setPanelWidth
public void setPanelWidth(int pw) Set the width of the visualization- Parameters:
pw- the width
-
setPanelHeight
public void setPanelHeight(int ph) Set the height of the visualization- Parameters:
ph- the height
-
setPixHeight
public void setPixHeight(double ph) Set the height of a pixel- Parameters:
ph- the height of a pixel
-
setPixWidth
public void setPixWidth(double pw) Set the width of a pixel- Parameters:
pw- the width of a pixel
-
setClassifier
Set the classifier to use- Parameters:
dc- the classifier
-
setDataGenerator
Set the density estimator to use- Parameters:
dg- the density estimator
-
setInstances
Set the training data- Parameters:
i- the training data
-
setMinMaxX
public void setMinMaxX(double minx, double maxx) Set the minimum and maximum values of the x axis fixed dimension- Parameters:
minx- adoublevaluemaxx- adoublevalue
-
setMinMaxY
public void setMinMaxY(double miny, double maxy) Set the minimum and maximum values of the y axis fixed dimension- Parameters:
miny- adoublevaluemaxy- adoublevalue
-
setXAttribute
public void setXAttribute(int xatt) Set the x axis fixed dimension- Parameters:
xatt- anintvalue
-
setYAttribute
public void setYAttribute(int yatt) Set the y axis fixed dimension- Parameters:
yatt- anintvalue
-
setNumSamplesPerRegion
public void setNumSamplesPerRegion(int num) Set the number of points to uniformly sample from a region (fixed dimensions).- Parameters:
num- anintvalue
-
setGeneratorSamplesBase
public void setGeneratorSamplesBase(double ksb) Set the base for computing the number of samples to obtain from each generator. number of samples = base ^ (# non fixed dimensions)- Parameters:
ksb- adoublevalue
-
execute
public void execute()Perform the sub task -
getTaskStatus
Return status information for this sub task- Specified by:
getTaskStatusin interfaceTask- Returns:
- a
TaskStatusInfovalue
-