|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.beans.PredictionAppender
public class PredictionAppender
Bean that can can accept batch or incremental classifier events and produce dataset or instance events which contain instances with predictions appended.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PredictionAppender()
Creates a new PredictionAppender instance. |
|
| Method Summary | |
|---|---|
void |
acceptClassifier(BatchClassifierEvent e)
Accept and process a batch classifier event |
void |
acceptClassifier(IncrementalClassifierEvent e)
Accept and process an incremental classifier event |
void |
acceptClusterer(BatchClustererEvent e)
Accept and process a batch clusterer event |
void |
addDataSourceListener(DataSourceListener dsl)
Add a datasource listener |
void |
addInstanceListener(InstanceListener dsl)
Add an instance listener |
void |
addTestSetListener(TestSetListener tsl)
Add a test set listener |
void |
addTrainingSetListener(TrainingSetListener tsl)
Add a training set listener |
String |
appendPredictedProbabilitiesTipText()
Return a tip text suitable for displaying in a GUI |
boolean |
connectionAllowed(EventSetDescriptor esd)
Returns true if, at this time, the object will accept a connection according to the supplied EventSetDescriptor |
boolean |
connectionAllowed(String eventName)
Returns true if, at this time, the object will accept a connection according to the supplied event name |
void |
connectionNotification(String eventName,
Object source)
Notify this object that it has been registered as a listener with a source with respect to the supplied event name |
void |
disconnectionNotification(String eventName,
Object source)
Notify this object that it has been deregistered as a listener with a source with respect to the supplied event name |
boolean |
eventGeneratable(String eventName)
Returns true, if at the current time, the named event could be generated. |
boolean |
getAppendPredictedProbabilities()
Return true if predicted probabilities are to be appended rather than class value |
String |
getCustomName()
Get the custom (descriptive) name for this bean (if one has been set) |
BeanVisual |
getVisual()
Get the visual being used by this data source. |
String |
globalInfo()
Global description of this bean |
boolean |
isBusy()
Returns true if. |
void |
removeDataSourceListener(DataSourceListener dsl)
Remove a datasource listener |
void |
removeInstanceListener(InstanceListener dsl)
Remove an instance listener |
void |
removeTestSetListener(TestSetListener tsl)
Remove a test set listener |
void |
removeTrainingSetListener(TrainingSetListener tsl)
Remove a training set listener |
void |
setAppendPredictedProbabilities(boolean ap)
Set whether to append predicted probabilities rather than class value (for discrete class data sets) |
void |
setCustomName(String name)
Set a custom (descriptive) name for this bean |
void |
setLog(Logger logger)
Set a logger |
void |
setVisual(BeanVisual newVisual)
Set the visual for this data source |
void |
stop()
Stop any processing that the bean might be doing. |
void |
useDefaultVisual()
Use the default images for a data source |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PredictionAppender()
PredictionAppender instance.
| Method Detail |
|---|
public String globalInfo()
String valuepublic void setCustomName(String name)
setCustomName in interface BeanCommonname - the name to usepublic String getCustomName()
getCustomName in interface BeanCommonpublic String appendPredictedProbabilitiesTipText()
String valuepublic boolean getAppendPredictedProbabilities()
boolean valuepublic void setAppendPredictedProbabilities(boolean ap)
ap - a boolean valuepublic void addTrainingSetListener(TrainingSetListener tsl)
addTrainingSetListener in interface TrainingSetProducertsl - a TrainingSetListener valuepublic void removeTrainingSetListener(TrainingSetListener tsl)
removeTrainingSetListener in interface TrainingSetProducertsl - a TrainingSetListener valuepublic void addTestSetListener(TestSetListener tsl)
addTestSetListener in interface TestSetProducertsl - a TestSetListener valuepublic void removeTestSetListener(TestSetListener tsl)
removeTestSetListener in interface TestSetProducertsl - a TestSetListener valuepublic void addDataSourceListener(DataSourceListener dsl)
addDataSourceListener in interface DataSourcedsl - a DataSourceListener valuepublic void removeDataSourceListener(DataSourceListener dsl)
removeDataSourceListener in interface DataSourcedsl - a DataSourceListener valuepublic void addInstanceListener(InstanceListener dsl)
addInstanceListener in interface DataSourcedsl - a InstanceListener valuepublic void removeInstanceListener(InstanceListener dsl)
removeInstanceListener in interface DataSourcedsl - a InstanceListener valuepublic void setVisual(BeanVisual newVisual)
setVisual in interface VisiblenewVisual - a BeanVisual valuepublic BeanVisual getVisual()
getVisual in interface VisibleBeanVisual valuepublic void useDefaultVisual()
useDefaultVisual in interface Visiblepublic void acceptClassifier(IncrementalClassifierEvent e)
acceptClassifier in interface IncrementalClassifierListenere - an IncrementalClassifierEvent valuepublic void acceptClassifier(BatchClassifierEvent e)
acceptClassifier in interface BatchClassifierListenere - a BatchClassifierEvent valuepublic void acceptClusterer(BatchClustererEvent e)
acceptClusterer in interface BatchClustererListenere - a BatchClassifierEvent valuepublic void setLog(Logger logger)
setLog in interface BeanCommonlogger - a weka.gui.Logger valuepublic void stop()
BeanCommon
stop in interface BeanCommonpublic boolean isBusy()
isBusy in interface BeanCommonpublic boolean connectionAllowed(String eventName)
connectionAllowed in interface BeanCommoneventName - the event
public boolean connectionAllowed(EventSetDescriptor esd)
connectionAllowed in interface BeanCommonesd - the EventSetDescriptor
public void connectionNotification(String eventName,
Object source)
connectionNotification in interface BeanCommoneventName - source - the source with which this object has been registered as
a listener
public void disconnectionNotification(String eventName,
Object source)
disconnectionNotification in interface BeanCommoneventName - the event namesource - the source with which this object has been registered as
a listenerpublic boolean eventGeneratable(String eventName)
eventGeneratable in interface EventConstraintseventName - the name of the event in question
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||