public class AdvancedConfigPanel extends JPanel
JComponent.AccessibleJComponent
Component.BaselineResizeBehavior
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
AdvancedConfigPanel(SimpleConfigPanel s)
Constructor
|
AdvancedConfigPanel(SimpleConfigPanel s,
boolean allowSeparateTestSet)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
applyToEvaluation(TSEvaluation eval,
WekaForecaster forecaster)
Apply the configuration defined in this panel to the supplied evaluation
object
|
void |
applyToForecaster(WekaForecaster forecaster)
Apply the configuration defined in this panel to the supplied forecaster
|
void |
enableDateDerivedPeriodics(boolean s)
Set the enabled/disabled status of date-derived periodic panel and its
associated widgets.
|
weka.classifiers.Classifier |
getBaseClassifier()
Get the underlying Weka classifier that will be used to make the
predictions
|
boolean |
getCustomizeDateDerivedPeriodics()
Returns true if the date-derived periodics check box is selected.
|
boolean |
getGraphFuturePredictions()
Returns true if the user has opted to graph future predictions
|
int |
getGraphPredictionsAtStep()
Get the step number to graph all the targets at.
|
boolean |
getGraphTargetForSteps()
Returns true if the user has opted to graph a target at specified steps
|
List<Integer> |
getGraphTargetForStepsStepList()
If the user has opted to graph a target a various steps, then this method
returns the list of steps that they have selected.
|
String |
getGraphTargetForStepsTarget()
Return the target that is to be graphed at various steps
|
double |
getHoldoutSetSize()
Gets the size of the holdout set.
|
boolean |
getOutputFuturePredictions()
Returns true if the user has opted to output future predictions
|
int |
getOutputPredictionsAtStep()
Returns at which step to output predictions.
|
String |
getOutputPredictionsTarget()
Get the selected target to output predictions for.
|
String |
getTabTitle()
Get a title for displaying in the tab that will hold this panel
|
String |
getTabTitleToolTip()
Get the tool tip for this configuration panel
|
boolean |
isEnabledCustomizeDateDerivedPeriodics()
Returns true if date-derived periodics is enabled
|
boolean |
isUsingCustomLags()
Returns true if the user has opted to customize the lags.
|
static void |
main(String[] args)
Tests the Weka advanced config panel from the command line.
|
void |
setInstances(weka.core.Instances train)
Set the instances that will be used in the training and evaluation of the
forecaster
|
void |
updateOutputPanel()
Updates the status/selection of various widgets on the output panel
|
void |
updateOverlayPanel()
Updates the status/selection of widgets on the overlay panel
|
void |
updatePanel()
Updates various enabled/selected status of widgets based on the current
configuration
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public AdvancedConfigPanel(SimpleConfigPanel s, boolean allowSeparateTestSet)
s
- a reference to the simple configuration panelallowSeparateTestSet
- true if the separate test set button is to be
displayedpublic AdvancedConfigPanel(SimpleConfigPanel s)
s
- a reference to the simple configuration panelpublic static void main(String[] args)
args
- must contain the name of an arff file to load.public String getTabTitle()
public String getTabTitleToolTip()
public weka.classifiers.Classifier getBaseClassifier()
public void setInstances(weka.core.Instances train)
train
- the instances to use in the training and evaluation processpublic void enableDateDerivedPeriodics(boolean s)
s
- true if date-derived periodicis is to be enabledpublic boolean isEnabledCustomizeDateDerivedPeriodics()
public boolean getCustomizeDateDerivedPeriodics()
public boolean isUsingCustomLags()
public double getHoldoutSetSize()
public boolean getOutputFuturePredictions()
public int getOutputPredictionsAtStep()
public boolean getGraphTargetForSteps()
public String getGraphTargetForStepsTarget()
public List<Integer> getGraphTargetForStepsStepList()
public String getOutputPredictionsTarget()
public int getGraphPredictionsAtStep()
public boolean getGraphFuturePredictions()
public void updatePanel()
public void updateOverlayPanel()
public void updateOutputPanel()
public void applyToForecaster(WekaForecaster forecaster) throws Exception
forecaster
- the forecaster to apply the configuration toException
- if a problem occurspublic void applyToEvaluation(TSEvaluation eval, WekaForecaster forecaster) throws Exception
eval
- the evaluation object to apply the configuration toforecaster
- the forecaster in useException
- if a problem occursCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.