⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errorgraph.java

📁 Single-layer neural networks can be trained using various learning algorithms. The best-known algori
💻 JAVA
字号:
// ========================================================================== ;//     MODIFIED FROM GraphGNG.java//     whose documentation follows                                            ;//     Copyright (1996-1997)  Hartmut S. Loos                                 ;//                                                                            ;//     Institut f"ur Neuroinformatik   ND 03                                  ;//     Ruhr-Universit"at Bochum                                               ;//     44780 Bochum                                                           ;//                                                                            ;//     Tel  : +49 234 7007845                                                 ;//     Email: loos@neuroinformatik.ruhr-uni-bochum.de                         ;//                                                                            ;//     For version information and parameter explanation have a look at       ;//     the file 'DemoGNG.java'.                                               ;//                                                                            ;// ========================================================================== ;//                                                                            ;// Copyright 1996-1997 Hartmut S. Loos                                        ;//                                                                            ;// This program is free software; you can redistribute it and/or modify       ;// it under the terms of the GNU General Public License as published by       ;// the Free Software Foundation; either version 1, or (at your option)        ;// any later version.                                                         ;//                                                                            ;// This program is distributed in the hope that it will be useful,            ;// but WITHOUT ANY WARRANTY; without even the implied warranty of             ;// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              ;// GNU General Public License for more details.                               ;//                                                                            ;// You should have received a copy of the GNU General Public License          ;// along with this program; if not, write to the Free Software                ;// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                  ;//                                                                            ;// ========================================================================== ;// Changed by Sebastien Baehni in order to be deprecative compliant.import java.awt.*;import java.awt.event.*;/** * A class implementing the error graph. * */class ErrorGraph extends Frame {    /**	 * 	 */	private static final long serialVersionUID = 1L;	SimplePerceptronApplet myOwner;    SelGraphics graph;    TextField error;    Button clear;    Button close;    /**     * The name of the clear button.     */    protected final static String CLEAR = "Clear";    /**     * The name of the close button.     */    protected final static String CLOSE = "Close";    ErrorGraph (SimplePerceptronApplet myOwner) {		this.myOwner = myOwner;		graph = new SelGraphics();		setTitle("ErrorGraph");			setLayout(new BorderLayout());		add("North",new Label("  Error Graph"));		add("Center",graph);		Panel pSouth = new Panel();		clear = new Button(CLEAR);		ActionListener clearListener = new ActionListener() {		    public void actionPerformed(ActionEvent e) {			clearPerformed();		    }		};		clear.addActionListener(clearListener);		close = new Button(CLOSE);		ActionListener closeListener = new ActionListener() {		    public void actionPerformed(ActionEvent e) {			closePerformed();		    }		};		close.addActionListener(closeListener);		pSouth.add(clear);		pSouth.add(close);		add("South", pSouth);		pack();			Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();		this.setLocation(Math.abs(dimension.width-this.getSize().width),Math.abs(dimension.height-this.getSize().height));    }    public void clearPerformed() {		graph.clear();    }    public void closePerformed() {		myOwner.graphClose();    }        }

⌨️ 快捷键说明

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