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

📄 rbflayer.java

📁 一个纯java写的神经网络源代码
💻 JAVA
字号:
/* * RbfLayer.java * * Created on July 21, 2004, 3:32 PM */package org.joone.engine;/** * This is the basis (helper) for radial basis function layers. * * @author Boris Jansen */public abstract class RbfLayer extends Layer {        /** Creates a new instance of RbfLayer */    public RbfLayer() {        super();    }        /**      * Creates a new instance of RbfLayer     *     * @param anElemName The name of the Layer     */    public RbfLayer(String anElemName) {        super(anElemName);    }        protected void setDimensions() {        // cannot set inps and gradientOuts, unrelated to the number of neurons        outs = new double[getRows()];        gradientInps = new double[getRows()];    }        /**     * Adjusts the size of a layer if the size of the forward pattern differs.     *     * @param aPattern the pattern holding a different size than the layer     * (dimension of neurons is not in accordance with the dimension of the      * pattern that is being forwarded).     */    protected void adjustSizeToFwdPattern(double[] aPattern) {        // In case of a RBF layer the size of a pattern might differ        // from the size of (number of neurons in) the layer. So we         // don't adjust the size of the layer (as is done usually, see Layer),         // but we just adjust the pattern size        inps = new double[aPattern.length];    }}

⌨️ 快捷键说明

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