|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.gui.boundaryvisualizer.RemoteBoundaryVisualizerSubTask
Class that encapsulates a sub task for distributed boundary visualization. Produces probability distributions for each pixel in one row of the visualization.
Task
,
Serialized FormField Summary | |
private boolean[] |
m_attsToWeightOn
|
private Classifier |
m_classifier
|
private DataGenerator |
m_dataGenerator
|
private double[] |
m_dist
|
private double |
m_maxX
|
private double |
m_maxY
|
private double |
m_minX
|
private double |
m_minY
|
private int |
m_numOfSamplesPerGenerator
|
private int |
m_numOfSamplesPerRegion
|
private int |
m_panelHeight
|
private int |
m_panelWidth
|
private double |
m_pixHeight
|
private double |
m_pixWidth
|
private Instance |
m_predInst
|
private java.util.Random |
m_random
|
private RemoteResult |
m_result
|
private int |
m_rowNumber
|
private double |
m_samplesBase
|
private TaskStatusInfo |
m_status
|
private Instances |
m_trainingData
|
private double[] |
m_vals
|
private double[] |
m_weightingAttsValues
|
private int |
m_xAttribute
|
private int |
m_yAttribute
|
Constructor Summary | |
RemoteBoundaryVisualizerSubTask()
|
Method Summary | |
private double[] |
calculateRegionProbs(int j,
int i)
|
void |
execute()
Perform the sub task |
private double |
getRandomX(int pix)
Return a random x attribute value contained within the pix'th horizontal pixel |
private double |
getRandomY(int pix)
Return a random y attribute value contained within the pix'th vertical pixel |
TaskStatusInfo |
getTaskStatus()
Return status information for this sub task |
void |
setClassifier(Classifier dc)
Set the classifier to use |
void |
setDataGenerator(DataGenerator dg)
Set the density estimator to use |
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) |
void |
setInstances(Instances i)
Set the training data |
void |
setMinMaxX(double minx,
double maxx)
Set the minimum and maximum values of the x axis fixed dimension |
void |
setMinMaxY(double miny,
double maxy)
Set the minimum and maximum values of the y axis fixed dimension |
void |
setNumSamplesPerRegion(int num)
Set the number of points to uniformly sample from a region (fixed dimensions). |
void |
setPanelHeight(int ph)
Set the height of the visualization |
void |
setPanelWidth(int pw)
Set the width of the visualization |
void |
setPixHeight(double ph)
Set the height of a pixel |
void |
setPixWidth(double pw)
Set the width of a pixel |
void |
setRowNumber(int rn)
Set the row number for this sub task |
void |
setXAttribute(int xatt)
Set the x axis fixed dimension |
void |
setYAttribute(int yatt)
Set the y axis fixed dimension |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private TaskStatusInfo m_status
private RemoteResult m_result
private int m_rowNumber
private int m_panelHeight
private int m_panelWidth
private Classifier m_classifier
private DataGenerator m_dataGenerator
private Instances m_trainingData
private int m_xAttribute
private int m_yAttribute
private double m_pixHeight
private double m_pixWidth
private double m_minX
private double m_minY
private double m_maxX
private double m_maxY
private int m_numOfSamplesPerRegion
private int m_numOfSamplesPerGenerator
private double m_samplesBase
private java.util.Random m_random
private double[] m_weightingAttsValues
private boolean[] m_attsToWeightOn
private double[] m_vals
private double[] m_dist
private Instance m_predInst
Constructor Detail |
public RemoteBoundaryVisualizerSubTask()
Method Detail |
public void setRowNumber(int rn)
rn
- the row numberpublic void setPanelWidth(int pw)
public void setPanelHeight(int ph)
ph
- the heightpublic void setPixHeight(double ph)
ph
- the height of a pixelpublic void setPixWidth(double pw)
pw
- the width of a pixelpublic void setClassifier(Classifier dc)
dc
- the classifierpublic void setDataGenerator(DataGenerator dg)
dg
- the density estimatorpublic void setInstances(Instances i)
i
- the training datapublic void setMinMaxX(double minx, double maxx)
minx
- a double
valuemaxx
- a double
valuepublic void setMinMaxY(double miny, double maxy)
miny
- a double
valuemaxy
- a double
valuepublic void setXAttribute(int xatt)
xatt
- an int
valuepublic void setYAttribute(int yatt)
yatt
- an int
valuepublic void setNumSamplesPerRegion(int num)
num
- an int
valuepublic void setGeneratorSamplesBase(double ksb)
ksb
- a double
valuepublic void execute()
execute
in interface Task
private double[] calculateRegionProbs(int j, int i) throws java.lang.Exception
java.lang.Exception
private double getRandomX(int pix)
pix
- the horizontal pixel number
private double getRandomY(int pix)
pix
- the vertical pixel number
public TaskStatusInfo getTaskStatus()
getTaskStatus
in interface Task
TaskStatusInfo
value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |