"Basic SOM Neighborhood Training",
"Train the nerual network using the classic neighborhood based SOM training."));
list.add(selectSOMClusterCopy = new SelectItem(
"SOM Cluster Copy Training",
"Train the SOM using the cluser copy method."));
SelectDialog sel = new SelectDialog(EncogWorkBench.getInstance()
.getMainWindow(), list);
sel.setVisible(true);
if (sel.getSelected() == selectBasicSOM) {
InputSOM somDialog = new InputSOM();
if (somDialog.process()) {
BasicTrainSOM train = new BasicTrainSOM((SOM) file.getObject(),
somDialog.getLearningRate().getValue(), trainingData,
somDialog.getNeighborhoodFunction());
train.setForceWinner(somDialog.getForceWinner().getValue());
startup(file, train, somDialog.getMaxError().getValue() / 100.0);
}
} else if (sel.getSelected() == selectSOMClusterCopy) {
SOMClusterCopyTraining train = new SOMClusterCopyTraining(
(SOM) file.getObject(), trainingData);
train.iteration();
if (EncogWorkBench.askQuestion("SOM", "Training done, save?")) {
file.save();