Package gov.nih.mipav.model.algorithms
Class Backpropagation.MainFrame
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.Backpropagation.MainFrame
-
- Enclosing class:
- Backpropagation
public class Backpropagation.MainFrame extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
Backpropagation.MainFrame.GPanel
-
Field Summary
Fields Modifier and Type Field Description private java.awt.Color[]
colorArray
private javax.swing.JLabel
convergenceLabel
private javax.swing.JPanel
coordinatePanel
private java.text.DecimalFormat
df
private javax.swing.JLabel
drawBackgroundSizeLabel
private boolean
drawMode
private javax.swing.JCheckBox
drawModeCheckBox
private javax.swing.JLabel
drawModeLabel
private javax.swing.JFrame
frame
private javax.swing.JButton
generateButton
private javax.swing.JMenuItem
generateMenuItem
private java.lang.String
hidden
private javax.swing.JLabel
hiddenLayerLabel
private javax.swing.JTextField
hiddenTextField
private javax.swing.JLabel
initialThresholdLabel
private javax.swing.JLabel
initialWeightsRangeLabel
private java.util.ArrayList<java.lang.Double[]>
inputs
private javax.swing.JPanel
layoutPanel
private javax.swing.JLabel
learningLabel
private double
learningRate
private javax.swing.JTextField
learningTextField
private javax.swing.JButton
loadButton
private javax.swing.JMenuItem
loadMenuItem
private javax.swing.JLabel
loadValue
private int
magnification
private javax.swing.JLabel
maximumConvergenceLabel
private double
maxRange
private int
maxTimes
private javax.swing.JTextField
maxTimesValue
private double
minError
private javax.swing.JTextField
minErrorTextField
private javax.swing.JLabel
minimumMSELabel
private double
minRange
private double
momentum
private javax.swing.JLabel
momentumLabel
private javax.swing.JTextField
momentumTextField
private java.awt.Point
mouse
private javax.swing.JLabel
MSEValue
private Backpropagation.NeuralNetwork
network
private java.util.ArrayList<java.lang.Double>
outputKinds
private javax.swing.JLabel
rootMSELabel
private double
size
private javax.swing.JTextField
sizeTextField
private java.util.ArrayList<java.lang.Double[]>
testData
private javax.swing.JLabel
testingDataLabel
private javax.swing.JLabel
testingRateLabel
private javax.swing.JLabel
testingValue
private javax.swing.JTable
testTable
private javax.swing.table.DefaultTableModel
testTableModel
private javax.swing.JScrollPane
testTableScrollPane
private double
threshold
private javax.swing.JTextField
thresholdTextField
private javax.swing.JLabel
tildeLabel
private javax.swing.JLabel
timesValue
private javax.swing.JButton
trainByAllDataButton
private java.util.ArrayList<java.lang.Double[]>
trainData
private javax.swing.JLabel
trainingDataLabel
private javax.swing.JLabel
trainingRateLabel
private javax.swing.JLabel
trainingValue
private javax.swing.JTable
trainTable
private javax.swing.table.DefaultTableModel
trainTableModel
private javax.swing.JScrollPane
trainTableScrollPane
private javax.swing.JLabel
vSpaceLabel
private javax.swing.JTextField
wRangeMaxValue
private javax.swing.JTextField
wRangeMinValue
private javax.swing.JLabel
zoomerLabel
private javax.swing.JSlider
zoomerSlider
-
Constructor Summary
Constructors Constructor Description MainFrame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
alertBackground(javax.swing.JTextField textField, boolean alert)
private void
changeLAF(java.lang.String name)
private java.lang.Double[]
convertCoordinate(java.lang.Double[] oldPoint)
private void
createUIComponents()
private void
initialData()
private void
loadFile(javax.swing.JFileChooser fileChooser)
private java.lang.Double
normalize(java.lang.Double input, java.lang.Double min, java.lang.Double max)
private void
resetData()
private void
resetFrame()
private java.lang.Double
round(java.lang.Double value, int places)
private void
startTrain(java.util.ArrayList<java.lang.Double[]> inputs)
-
-
-
Field Detail
-
loadMenuItem
private javax.swing.JMenuItem loadMenuItem
-
generateMenuItem
private javax.swing.JMenuItem generateMenuItem
-
frame
private javax.swing.JFrame frame
-
layoutPanel
private javax.swing.JPanel layoutPanel
-
coordinatePanel
private javax.swing.JPanel coordinatePanel
-
loadButton
private javax.swing.JButton loadButton
-
loadValue
private javax.swing.JLabel loadValue
-
generateButton
private javax.swing.JButton generateButton
-
learningLabel
private javax.swing.JLabel learningLabel
-
convergenceLabel
private javax.swing.JLabel convergenceLabel
-
trainingRateLabel
private javax.swing.JLabel trainingRateLabel
-
testingRateLabel
private javax.swing.JLabel testingRateLabel
-
tildeLabel
private javax.swing.JLabel tildeLabel
-
initialThresholdLabel
private javax.swing.JLabel initialThresholdLabel
-
initialWeightsRangeLabel
private javax.swing.JLabel initialWeightsRangeLabel
-
trainingDataLabel
private javax.swing.JLabel trainingDataLabel
-
vSpaceLabel
private javax.swing.JLabel vSpaceLabel
-
trainTableScrollPane
private javax.swing.JScrollPane trainTableScrollPane
-
testTableScrollPane
private javax.swing.JScrollPane testTableScrollPane
-
learningTextField
private javax.swing.JTextField learningTextField
-
thresholdTextField
private javax.swing.JTextField thresholdTextField
-
trainingValue
private javax.swing.JLabel trainingValue
-
testingValue
private javax.swing.JLabel testingValue
-
zoomerSlider
private javax.swing.JSlider zoomerSlider
-
timesValue
private javax.swing.JLabel timesValue
-
maxTimesValue
private javax.swing.JTextField maxTimesValue
-
wRangeMinValue
private javax.swing.JTextField wRangeMinValue
-
wRangeMaxValue
private javax.swing.JTextField wRangeMaxValue
-
hiddenTextField
private javax.swing.JTextField hiddenTextField
-
momentumTextField
private javax.swing.JTextField momentumTextField
-
trainTable
private javax.swing.JTable trainTable
-
testTable
private javax.swing.JTable testTable
-
hiddenLayerLabel
private javax.swing.JLabel hiddenLayerLabel
-
momentumLabel
private javax.swing.JLabel momentumLabel
-
maximumConvergenceLabel
private javax.swing.JLabel maximumConvergenceLabel
-
minimumMSELabel
private javax.swing.JLabel minimumMSELabel
-
testingDataLabel
private javax.swing.JLabel testingDataLabel
-
rootMSELabel
private javax.swing.JLabel rootMSELabel
-
drawBackgroundSizeLabel
private javax.swing.JLabel drawBackgroundSizeLabel
-
drawModeLabel
private javax.swing.JLabel drawModeLabel
-
zoomerLabel
private javax.swing.JLabel zoomerLabel
-
minErrorTextField
private javax.swing.JTextField minErrorTextField
-
MSEValue
private javax.swing.JLabel MSEValue
-
sizeTextField
private javax.swing.JTextField sizeTextField
-
drawModeCheckBox
private javax.swing.JCheckBox drawModeCheckBox
-
trainByAllDataButton
private javax.swing.JButton trainByAllDataButton
-
trainTableModel
private javax.swing.table.DefaultTableModel trainTableModel
-
testTableModel
private javax.swing.table.DefaultTableModel testTableModel
-
df
private java.text.DecimalFormat df
-
colorArray
private java.awt.Color[] colorArray
-
network
private Backpropagation.NeuralNetwork network
-
inputs
private java.util.ArrayList<java.lang.Double[]> inputs
-
trainData
private java.util.ArrayList<java.lang.Double[]> trainData
-
testData
private java.util.ArrayList<java.lang.Double[]> testData
-
outputKinds
private java.util.ArrayList<java.lang.Double> outputKinds
-
mouse
private java.awt.Point mouse
-
maxTimes
private int maxTimes
-
magnification
private int magnification
-
hidden
private java.lang.String hidden
-
momentum
private double momentum
-
learningRate
private double learningRate
-
threshold
private double threshold
-
minRange
private double minRange
-
maxRange
private double maxRange
-
minError
private double minError
-
size
private double size
-
drawMode
private boolean drawMode
-
-
Method Detail
-
loadFile
private void loadFile(javax.swing.JFileChooser fileChooser)
-
resetData
private void resetData()
-
initialData
private void initialData()
-
startTrain
private void startTrain(java.util.ArrayList<java.lang.Double[]> inputs)
-
round
private java.lang.Double round(java.lang.Double value, int places)
-
normalize
private java.lang.Double normalize(java.lang.Double input, java.lang.Double min, java.lang.Double max)
-
convertCoordinate
private java.lang.Double[] convertCoordinate(java.lang.Double[] oldPoint)
-
alertBackground
private void alertBackground(javax.swing.JTextField textField, boolean alert)
-
resetFrame
private void resetFrame()
-
changeLAF
private void changeLAF(java.lang.String name)
-
createUIComponents
private void createUIComponents()
-
-