7071727374757677787980
* * @return The neural network. */ public final MLMethod generate() { SOM som = new SOM(this.inputNeurons,this.outputNeurons); som.reset(); return som; } /** * Set the activation function. A SOM uses a linear activation function, so
6566676869707172737475
return this.network; } private SOM createNetwork() { SOM result = new SOM(3,MapPanel.WIDTH * MapPanel.HEIGHT); result.reset(); return result; } public static void main(String[] args) { SomColors frame = new SomColors();
4748495051525354555657
// create the training set MLDataSet training = new BasicMLDataSet(SOM_INPUT,null); // Create the neural network. SOM network = new SOM(4,2); network.reset(); BasicTrainSOM train = new BasicTrainSOM( network, 0.7, training,
* * @return The neural network. */ public MLMethod generate() { SOM som = new SOM(this.inputNeurons,this.outputNeurons); som.reset(); return som; } /** * Set the activation function. A SOM uses a linear activation function, so