📄 validation.bsh
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -