validation.bsh

来自「一个纯java写的神经网络源代码」· BSH 代码 · 共 25 行

BSH
25
字号
// Prints out the cycle and the training errorcycle = jMon.getTotCicles()-jMon.getCurrentCicle()+1;System.out.println("Cycle #"+cycle);System.out.println("    Training Error:   "+jMon.getGlobalError().toString());// Creates a copy of the neural networkjMon.setExporting(true);newNet = jNet.cloneNet();jMon.setExporting(false);// Cleans the old listenersnewNet.removeAllListeners();// Set all the parameters for the validationnnv = new NeuralNetValidator(newNet);nnv.addValidationListener(this);nnv.start();  // Validates the netvoid netValidated(NeuralValidationEvent e) {	// Shows the RMSE at the end of the cycle	NN = e.getSource();	System.out.println("    Validation Error: "+NN.getMonitor().getGlobalError().toString());}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?