public class SOMTrainer extends javax.swing.JFrame implements SOMToolboxApp
AbstractNetworkModel
,
Serialized Formjavax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
java.awt.Container.AccessibleAWTContainer
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
SOMToolboxApp.Type
Modifier and Type | Field and Description |
---|---|
static SOMToolboxApp.Type |
APPLICATION_TYPE |
private javax.swing.JButton |
btnLogFileSaver |
private javax.swing.JButton |
btnOutDirFileSaver |
private javax.swing.JButton |
btnSave |
private javax.swing.JButton |
btnTrain |
private javax.swing.JButton |
btnTVFileOpen |
private javax.swing.JButton |
btnVecFileOpen |
private javax.swing.JCheckBox |
chkCreateDWM |
private javax.swing.JCheckBox |
chkLabelSOM |
private javax.swing.JCheckBox |
chkLernrate |
private javax.swing.JCheckBox |
chkNormalized |
private javax.swing.JCheckBox |
chkSigma |
private javax.swing.JCheckBox |
chkSparse |
private javax.swing.JComboBox |
cmbMetric |
private ClassComboBoxModel<DistanceMetric> |
cmbMetricModel |
private javax.swing.JComboBox |
cmbModel |
private ClassComboBoxModel<AbstractNetworkModel> |
cmbModelModel |
private javax.swing.JComboBox |
cmbQualityMeasure |
private ClassComboBoxModel<QualityMeasure> |
cmbQualityMeasureModel |
static java.lang.String |
DESCRIPTION |
private javax.swing.JLabel |
jLabel |
private javax.swing.JLabel |
lblIteration |
private javax.swing.JLabel |
lblLabels |
private javax.swing.JLabel |
lblLogFile |
private javax.swing.JLabel |
lblMetric |
private javax.swing.JLabel |
lblModel |
private javax.swing.JLabel |
lblOutputDir |
private javax.swing.JLabel |
lblQuality |
private javax.swing.JLabel |
lblThreads |
private javax.swing.JLabel |
lblTitle |
private javax.swing.JLabel |
lblTvFile |
private javax.swing.JLabel |
lblVecFile |
private javax.swing.JLabel |
lblXSize |
private javax.swing.JLabel |
lblYSize |
static java.lang.String |
LONG_DESCRIPTION |
private javax.swing.JPanel |
main |
static com.martiansoftware.jsap.Parameter[] |
OPTIONS |
private javax.swing.JProgressBar |
pgbTraining |
private javax.swing.JPanel |
pnlGo |
private javax.swing.JPanel |
pnlInputData |
private javax.swing.JPanel |
pnlLog |
private javax.swing.JPanel |
pnlMapSettings |
private javax.swing.JPanel |
pnlMisc |
private javax.swing.JPanel |
pnlModelSettings |
private SOMModelSettingsPanel |
pnlModelSpecificSettings |
private javax.swing.JPanel |
pnlOutDir |
private javax.swing.JPanel |
pnlSettings |
private javax.swing.JPanel |
pnlTv |
private javax.swing.JPanel |
pnlVec |
private javax.swing.JRadioButton |
rdoCycles |
private javax.swing.JRadioButton |
rdoIterations |
private static long |
serialVersionUID |
private javax.swing.JSpinner |
spnIterations |
private javax.swing.JSpinner |
spnLabels |
private javax.swing.JSpinner |
spnLearnrate |
private javax.swing.JSpinner |
spnRandomSeed |
private javax.swing.JSpinner |
spnSigma |
private javax.swing.JSpinner |
spnThreads |
private javax.swing.SpinnerNumberModel |
spnThreadsModel |
private javax.swing.JSpinner |
spnWinnerCount |
private javax.swing.JSpinner |
spnXSize |
private javax.swing.JSpinner |
spnYSize |
private javax.swing.JTextField |
txtInputVecotrFile |
private javax.swing.JTextField |
txtLogFile |
private javax.swing.JTextField |
txtOutDir |
private javax.swing.JTextField |
txtTemplateVecotrFile |
private javax.swing.JTextField |
txtTitle |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DEV_BY_STRING, HOMEPAGE, INFO, INFO_TEXT, LICENSE_TEXT, REQUIRED_MEMBERS, TYPE_GROUPED_COMPARATOR
Constructor and Description |
---|
SOMTrainer()
This method initializes
|
Modifier and Type | Method and Description |
---|---|
private java.lang.String[] |
createCmdLine(java.io.File propFile) |
private java.util.Properties |
createSOMProps() |
private java.io.File |
execFileChooser(javax.swing.JTextField target,
javax.swing.filechooser.FileFilter filter,
boolean isToSave,
boolean directorySelect) |
private javax.swing.JButton |
getBtnLogFileSaver()
This method initializes btnLogFileSaver
|
private javax.swing.JButton |
getBtnOutDirFileSaver()
This method initializes btnOutDirFileSaver
|
private javax.swing.JButton |
getBtnSave()
This method initializes btnSave
|
private javax.swing.JButton |
getBtnTrain()
This method initializes btnTrain
|
private javax.swing.JButton |
getBtnTVFileOpen()
This method initializes btnTVFileOpen
|
private javax.swing.JButton |
getBtnVecFileOpen()
This method initializes btnVecFileOpen
|
private javax.swing.JCheckBox |
getChkCreateDWM()
This method initializes chkCreateDWM
|
private javax.swing.JCheckBox |
getChkLabelSOM()
This method initializes chkLabelSOM
|
private javax.swing.JCheckBox |
getChkLernrate()
This method initializes chkLernrate
|
private javax.swing.JCheckBox |
getChkNormalized()
This method initializes chkNormalized
|
private javax.swing.JCheckBox |
getChkSigma()
This method initializes chkSigma
|
private javax.swing.JCheckBox |
getChkSparse()
This method initializes chkSparse
|
private javax.swing.JComboBox |
getCmbMetric()
This method initializes cmbMetric
|
private ClassComboBoxModel<DistanceMetric> |
getCmbMetricModel() |
private javax.swing.JComboBox |
getCmbModel()
This method initializes cmbModel
|
private ClassComboBoxModel<AbstractNetworkModel> |
getCmbModelModel() |
private javax.swing.JComboBox |
getCmbQualityMeasure()
This method initializes cmbQualityMeasure
|
private ClassComboBoxModel<QualityMeasure> |
getCmbQualityMeasureModel() |
private javax.swing.JPanel |
getMain()
This method initializes main
|
private javax.swing.JProgressBar |
getPgbTraining()
This method initializes pgbTraining
|
private javax.swing.JPanel |
getPnlGo()
This method initializes pnlGo
|
private javax.swing.JPanel |
getPnlInputData()
This method initializes pnlInputData
|
private javax.swing.JPanel |
getPnlLog()
This method initializes pnlLog
|
private javax.swing.JPanel |
getPnlMapSettings()
This method initializes pnlMapSettings
|
private javax.swing.JPanel |
getPnlMisc()
This method initializes pnlMisc
|
private javax.swing.JPanel |
getPnlModelSettings()
This method initializes pnlModelSettings
|
private javax.swing.JPanel |
getPnlOutDir()
This method initializes pnlOutDir
|
private javax.swing.JPanel |
getPnlSettings()
This method initializes pnlSettings
|
private javax.swing.JPanel |
getPnlTv()
This method initializes pnlTv
|
private javax.swing.JPanel |
getPnlVec()
This method initializes pnlVec
|
private javax.swing.JRadioButton |
getRdoCycles()
This method initializes rdoCycles
|
private javax.swing.JRadioButton |
getRdoIterations()
This method initializes rdoIterations
|
private javax.swing.JSpinner |
getSpnIterations()
This method initializes spnIterations
|
private javax.swing.JSpinner |
getSpnLabels()
This method initializes spnLabels
|
private javax.swing.JSpinner |
getSpnLearnrate()
This method initializes spnLearnrate
|
private javax.swing.JSpinner |
getSpnRandomSeed()
This method initializes spnRandomSeed
|
private javax.swing.JSpinner |
getSpnSigma()
This method initializes spnSigma
|
private javax.swing.JSpinner |
getSpnThreads()
This method initializes spnThreads
|
private javax.swing.JSpinner |
getSpnWinnerCount()
This method initializes spnWinnerCount
|
private javax.swing.JSpinner |
getSpnXSize()
This method initializes spnXSize
|
private javax.swing.JSpinner |
getSpnYSize()
This method initializes spnYSize
|
private javax.swing.JTextField |
getTxtInputVecotrFile()
This method initializes txtInputVecotrFile
|
private javax.swing.JTextField |
getTxtLogFile()
This method initializes txtLogFile
|
private javax.swing.JTextField |
getTxtOutDir()
This method initializes txtOutDir
|
private javax.swing.JTextField |
getTxtTemplateVecotrFile()
This method initializes txtTemplateVecotrFile
|
private javax.swing.JTextField |
getTxtTitle()
This method initializes txtTitle
|
private void |
initialize()
This method initializes this
|
static void |
main(java.lang.String[] args) |
private static void |
setEnabledToChildren(javax.swing.JPanel panel,
boolean enabled,
boolean recursive) |
private void |
setGuiLocked(boolean locked) |
private void |
startTraining() |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final long serialVersionUID
public static final com.martiansoftware.jsap.Parameter[] OPTIONS
public static final java.lang.String DESCRIPTION
public static final java.lang.String LONG_DESCRIPTION
public static final SOMToolboxApp.Type APPLICATION_TYPE
private javax.swing.JPanel main
private javax.swing.JPanel pnlMapSettings
private javax.swing.JLabel lblTitle
private javax.swing.JTextField txtTitle
private javax.swing.JLabel lblModel
private javax.swing.JComboBox cmbModel
private javax.swing.JPanel pnlInputData
private javax.swing.JLabel lblVecFile
private javax.swing.JPanel pnlVec
private javax.swing.JTextField txtInputVecotrFile
private javax.swing.JButton btnVecFileOpen
private javax.swing.JLabel lblTvFile
private javax.swing.JPanel pnlTv
private javax.swing.JTextField txtTemplateVecotrFile
private javax.swing.JButton btnTVFileOpen
private javax.swing.JLabel lblOutputDir
private javax.swing.JPanel pnlOutDir
private javax.swing.JTextField txtOutDir
private javax.swing.JButton btnOutDirFileSaver
private javax.swing.JPanel pnlModelSettings
private javax.swing.JPanel pnlMisc
private javax.swing.JLabel lblThreads
private javax.swing.JLabel lblLogFile
private javax.swing.JSpinner spnThreads
private javax.swing.JPanel pnlLog
private javax.swing.JTextField txtLogFile
private javax.swing.JButton btnLogFileSaver
private javax.swing.SpinnerNumberModel spnThreadsModel
private javax.swing.JProgressBar pgbTraining
private javax.swing.JPanel pnlGo
private javax.swing.JButton btnTrain
private javax.swing.JButton btnSave
private javax.swing.JCheckBox chkSparse
private javax.swing.JCheckBox chkNormalized
private javax.swing.JPanel pnlSettings
private javax.swing.JLabel lblXSize
private javax.swing.JSpinner spnXSize
private javax.swing.JLabel lblYSize
private javax.swing.JSpinner spnYSize
private javax.swing.JSpinner spnLearnrate
private javax.swing.JSpinner spnSigma
private javax.swing.JSpinner spnIterations
private javax.swing.JLabel lblIteration
private javax.swing.JRadioButton rdoIterations
private javax.swing.JRadioButton rdoCycles
private javax.swing.JLabel lblMetric
private javax.swing.JLabel lblQuality
private javax.swing.JComboBox cmbMetric
private javax.swing.JComboBox cmbQualityMeasure
private javax.swing.JLabel jLabel
private javax.swing.JSpinner spnRandomSeed
private javax.swing.JCheckBox chkCreateDWM
private javax.swing.JCheckBox chkSigma
private javax.swing.JCheckBox chkLernrate
private SOMModelSettingsPanel pnlModelSpecificSettings
private ClassComboBoxModel<DistanceMetric> cmbMetricModel
private ClassComboBoxModel<QualityMeasure> cmbQualityMeasureModel
private ClassComboBoxModel<AbstractNetworkModel> cmbModelModel
private javax.swing.JCheckBox chkLabelSOM
private javax.swing.JLabel lblLabels
private javax.swing.JSpinner spnLabels
private javax.swing.JSpinner spnWinnerCount
private void initialize()
private javax.swing.JPanel getMain()
private javax.swing.JPanel getPnlMapSettings()
private javax.swing.JTextField getTxtTitle()
private javax.swing.JComboBox getCmbModel()
private ClassComboBoxModel<AbstractNetworkModel> getCmbModelModel()
NetworkModel
sprivate javax.swing.JPanel getPnlInputData()
private javax.swing.JPanel getPnlVec()
private javax.swing.JTextField getTxtInputVecotrFile()
private javax.swing.JButton getBtnVecFileOpen()
private javax.swing.JPanel getPnlTv()
private javax.swing.JTextField getTxtTemplateVecotrFile()
private javax.swing.JButton getBtnTVFileOpen()
private javax.swing.JPanel getPnlOutDir()
private javax.swing.JTextField getTxtOutDir()
private javax.swing.JButton getBtnOutDirFileSaver()
private javax.swing.JPanel getPnlModelSettings()
private javax.swing.JPanel getPnlMisc()
private javax.swing.JSpinner getSpnThreads()
private javax.swing.JPanel getPnlLog()
private javax.swing.JTextField getTxtLogFile()
private javax.swing.JButton getBtnLogFileSaver()
private javax.swing.JProgressBar getPgbTraining()
private javax.swing.JPanel getPnlGo()
private javax.swing.JButton getBtnTrain()
private javax.swing.JButton getBtnSave()
private javax.swing.JCheckBox getChkSparse()
private javax.swing.JCheckBox getChkNormalized()
private javax.swing.JPanel getPnlSettings()
private javax.swing.JSpinner getSpnXSize()
private javax.swing.JSpinner getSpnYSize()
private javax.swing.JSpinner getSpnLearnrate()
private javax.swing.JSpinner getSpnSigma()
private javax.swing.JSpinner getSpnIterations()
private javax.swing.JRadioButton getRdoIterations()
private javax.swing.JRadioButton getRdoCycles()
private javax.swing.JComboBox getCmbMetric()
private ClassComboBoxModel<DistanceMetric> getCmbMetricModel()
private javax.swing.JComboBox getCmbQualityMeasure()
private ClassComboBoxModel<QualityMeasure> getCmbQualityMeasureModel()
QualityMeasure
Modelprivate java.io.File execFileChooser(javax.swing.JTextField target, javax.swing.filechooser.FileFilter filter, boolean isToSave, boolean directorySelect)
private java.util.Properties createSOMProps()
private java.lang.String[] createCmdLine(java.io.File propFile)
private void setGuiLocked(boolean locked)
private void startTraining()
private javax.swing.JSpinner getSpnRandomSeed()
private javax.swing.JCheckBox getChkCreateDWM()
private javax.swing.JCheckBox getChkSigma()
private javax.swing.JCheckBox getChkLernrate()
private static void setEnabledToChildren(javax.swing.JPanel panel, boolean enabled, boolean recursive)
private javax.swing.JCheckBox getChkLabelSOM()
private javax.swing.JSpinner getSpnLabels()
private javax.swing.JSpinner getSpnWinnerCount()
public static void main(java.lang.String[] args)