public void printNet() { inputLayer.printLayer(inputLayer); System.out.println(); hiddenLayer.printLayer(listOfHiddenLayer); System.out.println(); outputLayer.printLayer(outputLayer); }
public void initNet() { inputLayer = new InputLayer(); inputLayer.setNumberOfNeuronsInLayer(2); numberOfHiddenLayers = 2; listOfHiddenLayer = new ArrayList<HiddenLayer>(); for (int i = 0; i < numberOfHiddenLayers; i++) { hiddenLayer = new HiddenLayer(); hiddenLayer.setNumberOfNeuronsInLayer(3); listOfHiddenLayer.add(hiddenLayer); } outputLayer = new OutputLayer(); outputLayer.setNumberOfNeuronsInLayer(1); inputLayer = inputLayer.initLayer(inputLayer); listOfHiddenLayer = hiddenLayer.initLayer(hiddenLayer, listOfHiddenLayer, inputLayer, outputLayer); outputLayer = outputLayer.initLayer(outputLayer); }